import React from 'react'; import { Drawer, Typography } from 'antd'; import SemanticPreview from '../../../.dumi/components/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; const locales = { cn: { mask: '遮罩层元素', content: 'Drawer 容器元素', header: '头部元素', body: '内容元素', footer: '底部元素', }, en: { mask: 'Mask element', content: 'Drawer container element', header: 'Header element', body: 'Body element', footer: 'Footer element', }, }; const App: React.FC = () => { const [locale] = useLocale(locales); return ( Footer} closable={false} open getContainer={false} >

Some contents...

); }; export default App;