UNPKG

kitchen-color-studio

Version:

an open-source color editor for designing color system

17 lines 557 B
import { DumiSiteProvider, Highlighter } from 'dumi-theme-antd-style'; import { memo } from 'react'; import { CodeView } from "../../styles"; import { jsx as _jsx } from "react/jsx-runtime"; var JsonView = /*#__PURE__*/memo(function (_ref) { var data = _ref.data; return /*#__PURE__*/_jsx(CodeView, { children: /*#__PURE__*/_jsx(DumiSiteProvider, { children: /*#__PURE__*/_jsx(Highlighter, { background: false, language: "json", children: JSON.stringify(data, null, 4) }) }) }); }); export default JsonView;