kitchen-color-studio
Version:
an open-source color editor for designing color system
24 lines • 1.05 kB
JavaScript
import { usePrettier } from "../..";
import { memo } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default /*#__PURE__*/memo(function () {
var _usePrettier = usePrettier(),
format = _usePrettier.format;
var content = "export const menus = {components: [{title: '\u88C5\u914D\u5668',\n children: ['Studio'],},{\n title: '\u9762\u677F\u6A21\u5757',children: ['HctPicker',\n'ScalePreview', 'ScaleBlock',\n 'ScaleRow'],},{\n title: '\u5DE5\u5177\u7C7B',children: ['useSketchJSON',\n 'useDownload'],\n },],};";
return /*#__PURE__*/_jsxs("div", {
children: [/*#__PURE__*/_jsx("h2", {
children: "Before"
}), /*#__PURE__*/_jsx("pre", {
children: /*#__PURE__*/_jsx("code", {
children: content
})
}), /*#__PURE__*/_jsx("h2", {
children: "After"
}), /*#__PURE__*/_jsx("pre", {
children: /*#__PURE__*/_jsx("code", {
children: format(content)
})
})]
});
});