import { useContext } from 'react'; import { observer } from 'mobx-react'; // import { stores_Context } from '../config'; import { Table } from 'antd'; import KPISettings from './KPISettings'; import { bu, KPISubjects } from '../../libs/ht'; const searchFormItemSet = { 'bu': { shows: ['DateType', 'years', 'HTBusinessUnits'] }, 'dept': { shows: ['DateType', 'years', 'DepartmentList'], fieldProps: { DepartmentList: { allowClear: true } } }, 'operator': { shows: ['DateType', 'years', 'DepartmentList'] }, // , 'operator' 'destination': { shows: ['DateType', 'years', 'destination'] }, 'country': { shows: ['DateType', 'years', 'country'] }, }; export default observer((props) => { const searchProps = searchFormItemSet?.[props.curObject] || {}; return ( <> ); });