UNPKG

kitchen-color-studio

Version:

an open-source color editor for designing color system

23 lines 723 B
import { Button } from 'antd'; import { useDownload } 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 data = { a: 111, b: 222 }; var _useDownload = useDownload(), setContent = _useDownload.setContent, startDownload = _useDownload.startDownload; setContent(JSON.stringify(data), 'demo.json'); return /*#__PURE__*/_jsxs("div", { children: [/*#__PURE__*/_jsx("div", { children: JSON.stringify(data) }), /*#__PURE__*/_jsx(Button, { onClick: startDownload, children: "\u751F\u6210\u5E76\u4E0B\u8F7D\u6587\u4EF6" })] }); });