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...
21 lines (20 loc) • 484 B
JavaScript
import { jsx as r } from "react/jsx-runtime";
import { useMemo as a } from "react";
import { p as i } from "./chunks/config.mjs";
const n = (e) => {
const t = a(() => `${i}-toolbar-item${e.disabled ? " " + i + "-disabled" : ""}`, [e.disabled]);
return /* @__PURE__ */ r(
"div",
{
className: t,
title: e.title,
onClick: (l) => {
e.disabled || e.onClick(l);
},
children: e.children || e.trigger
}
);
};
export {
n as default
};