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