import React, { useState } from 'react'; import { ThemeEditor } from 'antd-token-previewer'; import { ConfigProvider } from 'antd'; import type { ThemeConfig } from 'antd/es/config-provider/context'; const CustomTheme = () => { const [theme, setTheme] = useState({}); return (
{ setTheme(newTheme.config); }} />
); }; export default CustomTheme;