@frontify/fondue
Version:
Design system of Frontify
21 lines (20 loc) • 815 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { getPluginType as m } from "@udecode/plate-core";
import { MarkToolbarButton as p } from "../MarkToolbarButton.es.js";
import { getHotkeyByPlatform as e } from "../../../helpers/getHotkeyByPlatform.es.js";
import { getTooltip as i } from "../../../helpers/getTooltip.es.js";
import l from "../../../../../foundation/Icon/Generated/IconTextFormatBold16.es.js";
import { ButtonWrapper as n, IconStylingWrapper as f } from "../../helper.es.js";
const u = ({ editor: r, id: t }) => /* @__PURE__ */ o(n, { id: t, children: /* @__PURE__ */ o(
p,
{
tooltip: i(`Bold
${e("Ctrl+B")}`),
nodeType: m(r, t),
children: /* @__PURE__ */ o(f, { icon: /* @__PURE__ */ o(l, {}) })
}
) });
export {
u as BoldButton
};
//# sourceMappingURL=BoldButton.es.js.map