UNPKG

md-editor-rt

Version:

Markdown editor for react, developed in jsx and typescript, dark theme、beautify content by prettier、render articles directly、paste or clip the picture and upload it...

23 lines (22 loc) 571 B
import { jsx as a } from "react/jsx-runtime"; import { memo as r, useMemo as o } from "react"; import { p as e } from "./chunks/config.mjs"; const n = (t) => { const i = o(() => `${e}-toolbar-item${t.disabled ? " " + e + "-disabled" : ""}`, [t.disabled]); return /* @__PURE__ */ a( "button", { className: i, title: t.title || "", "aria-label": t.title || "", onClick: (l) => { t.disabled || t.onClick(l); }, type: "button", children: t.children || t.trigger } ); }, c = r(n); export { c as default };