UNPKG

@frontify/fondue

Version:
12 lines (11 loc) 691 B
import { jsx as o } from "react/jsx-runtime"; import { getPluginType as p } from "@udecode/plate-core"; import { MarkToolbarButton as e } from "../MarkToolbarButton.es.js"; import { getTooltip as i } from "../../../helpers/getTooltip.es.js"; import m from "../../../../../foundation/Icon/Generated/IconTextBrackets16.es.js"; import { ButtonWrapper as n, IconStylingWrapper as c } from "../../helper.es.js"; const u = ({ editor: t, id: r }) => /* @__PURE__ */ o(n, { id: r, children: /* @__PURE__ */ o(e, { tooltip: i("Code"), nodeType: p(t, r), children: /* @__PURE__ */ o(c, { icon: /* @__PURE__ */ o(m, {}) }) }) }); export { u as CodeButton }; //# sourceMappingURL=CodeButton.es.js.map