UNPKG

antd-color-editor

Version:

An open-source color editor for designing color system

15 lines 470 B
import { 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(Highlighter, { background: false, language: "json", children: JSON.stringify(data, null, 4) }) }); }); export default JsonView;