import React from 'react' type LeftMenuProps = { title?: string options: { label: string; value: string }[] onChange: (key: string) => void value: string } const LeftMenu: React.FC = ({ title = '栏目/功能', options, onChange, value }) => { return (
{title}
    {options.map(item => (
  • onChange(item.value)}> {item.label}
  • ))}
) } export default LeftMenu