import type { ReactNode } from 'react'; import { TextAndLang } from './common'; import { SxProps, Theme } from '@mui/material/styles'; export interface ColumnsView { code?: string; name: TextAndLang[]; sorting?: 'ascending' | 'descending'; sort_order: number; selected?: boolean; fields: Array<{ code: string; type: string; parameters: Array<{ parameter: string; code: string; expected_value?: string | boolean; selected?: boolean; }>; interaction?: { trigger: string; action: { type: string; state: boolean; }; default: { type: string; state: boolean; }; }; filters?: string[]; }>; } export interface ColumnViewProps { code?: string; label?: string | null | ReactNode; name: string; sort_order?: number; icon?: ReactNode; menuItems?: ColumnViewProps[]; selected?: boolean; open?: boolean; displayChildrenCount?: boolean; disabled?: boolean; sx?: SxProps; menuSx?: SxProps; }