import React from 'react'; import { Button, Row } from 'antd'; export interface IFilterProps { value: (string | number)[]; options?: string[]; map?: any; onClick: (value: string) => void; } export default ({value, options, map, onClick}: IFilterProps) => { if (!Array.isArray(options)) return null; return ( { options.map(item => { return ( ) }) } ) }