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