import React from 'react'; import type { CollapseProps } from 'antd'; import { Collapse } from 'antd'; import SemanticPreview from '../../../.dumi/components/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; const locales = { cn: { header: '头部元素', body: '内容元素', }, en: { header: 'Header element', body: 'Body element', }, }; const BlockCollapse: React.FC = (props) => { const items: CollapseProps['items'] = [ { key: '1', label: 'This is panel header', children:
This is panel body
, ...props, }, ]; return (