import React from 'react'; import { Tooltip, Icon } from 'antd'; import style from './index.less'; export interface BlockChecboxProps { value: string; onChange: (key: string) => void; list: any[]; } const BlockChecbox: React.FC = ({ value, onChange, list }) => (
{list.map(item => (
onChange(item.key)}> {item.key}
))}
); export default BlockChecbox;