@frontify/fondue
Version:
Design system of Frontify
23 lines (22 loc) • 913 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { MARK_SUPERSCRIPT 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/IconSubscript16.es.js";
import { ButtonWrapper as l, IconStylingWrapper as f } from "../../helper.es.js";
const B = ({ editor: r, id: t }) => /* @__PURE__ */ o(l, { id: t, children: /* @__PURE__ */ o(
i,
{
tooltip: n(`Subscript
${e("Ctrl+.")}`),
nodeType: p(r, t),
clear: p(r, m),
children: /* @__PURE__ */ o(f, { icon: /* @__PURE__ */ o(c, {}) })
}
) });
export {
B as SubscriptButton
};
//# sourceMappingURL=SubscriptButton.es.js.map