import { ReactNode } from 'react'; import { Filter } from '@/ui/object/filter/types/Filter'; import { Sort } from '@/ui/object/sort/types/Sort'; import { ViewField } from '../types/ViewField'; import { ViewScopeInitEffect } from './init-effect/ViewScopeInitEffect'; import { ViewScopeInternalContext } from './scope-internal-context/ViewScopeInternalContext'; type ViewScopeProps = { children: ReactNode; viewScopeId: string; onViewSortsChange?: (sorts: Sort[]) => void | Promise; onViewFiltersChange?: (filters: Filter[]) => void | Promise; onViewFieldsChange?: (fields: ViewField[]) => void | Promise; }; export const ViewScope = ({ children, viewScopeId, onViewSortsChange, onViewFiltersChange, onViewFieldsChange, }: ViewScopeProps) => { return ( {children} ); };