@frontify/fondue
Version:
Design system of Frontify
23 lines (22 loc) • 918 B
JavaScript
import { jsx as r } from "react/jsx-runtime";
import { MARK_SUBSCRIPT as m } from "@udecode/plate-basic-marks";
import { getPluginType as p } from "@udecode/plate-core";
import { MarkToolbarButton as i } from "../MarkToolbarButton.es.js";
import { getHotkeyByPlatform as e } from "../../../helpers/getHotkeyByPlatform.es.js";
import { getTooltip as n } from "../../../helpers/getTooltip.es.js";
import c from "../../../../../foundation/Icon/Generated/IconSuperscript16.es.js";
import { ButtonWrapper as l, IconStylingWrapper as f } from "../../helper.es.js";
const I = ({ editor: o, id: t }) => /* @__PURE__ */ r(l, { id: t, children: /* @__PURE__ */ r(
i,
{
tooltip: n(`Superscript
${e("Ctrl+,")}`),
nodeType: p(o, t),
clear: p(o, m),
children: /* @__PURE__ */ r(f, { icon: /* @__PURE__ */ r(c, {}) })
}
) });
export {
I as SuperscriptButton
};
//# sourceMappingURL=SupercriptButton.es.js.map