import { LookupPickerProps } from '../../LookupPicker'; export interface FieldInfo { label: string; fieldName: string; fieldType: 'string' | 'number' | 'date' | 'lookup' | 'boolean'; dictionary?: Dict[]; lookupProps?: LookupPickerProps; } export interface Condition extends FieldInfo { value?: any; operand?: string; filterStr?: string; id?: string; } export interface Props { onSubmit: (params: { filter: string; conditions: Condition[]; }) => void; onClear: () => void; onDismiss: () => void; fields: FieldInfo[]; conditions?: Condition[]; } export interface State { filter: string; conditions: Condition[]; addingCondition?: boolean; } export interface Dict { value: string | number | boolean; label: string; } export interface FooterProps { onSubmit: () => void; onClear: () => void; filter: string; wasFilter?: boolean; }