import React from 'react'; import { AppstoreOutlined, BarsOutlined } from '@ant-design/icons'; import { Segmented } from 'antd'; import SemanticPreview from '../../../.dumi/theme/common/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; const locales = { cn: { root: '根元素', item: '包裹的子组件', icon: '图标元素', label: '内容元素', }, en: { root: 'Root element', item: 'Wrapped item element', icon: 'Icon element', label: 'Content element', }, }; const App: React.FC = () => { const [locale] = useLocale(locales); return ( }, { label: 'Kanban', value: 'Kanban', icon: }, ]} /> ); }; export default App;