import { ReactNode } from 'react'; import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data'; import { GenericDataOptions } from '../types'; /** * Props passed to a user-defined custom widget component. */ export interface CustomWidgetComponentProps { dataSource?: DataSource; dataOptions: DataOptions; styleOptions: StyleOptions & { /** * The width of the custom widget component. */ width?: number; /** * The height of the custom widget component. */ height?: number; }; filters?: Filter[] | FilterRelations; highlights?: Filter[]; description?: string; } /** * A user-defined custom widget component. This is can be specified when registering a * custom widget with `registerCustomWidget` from the `useCustomWidgets` hook. */ export type CustomWidgetComponent = (props: Props) => ReactNode; //# sourceMappingURL=types.d.ts.map