import React, {MouseEvent} from 'react'; import KeplerTable from 'utils/table-utils/kepler-table'; import {openDeleteModal} from 'actions/ui-state-actions'; import * as VisStateActions from 'actions/vis-state-actions'; import {Datasets} from 'reducers'; import {ActionHandler} from 'actions'; export type DatasetInfoProps = { dataset: KeplerTable; }; export type UpdateTableColorTypes = { id: string; children: React.ReactNode; }; export type DatasetTagProps = { id?: string; dataset: KeplerTable; updateTableColor?: ActionHandler; onClick?: (e: MouseEvent) => void; onClickSquare?: (e: MouseEvent) => void; }; export type ShowDataTableProps = { id: string; showDatasetTable?: ActionHandler; }; export type RemoveDatasetProps = { datasetKey: string; removeDataset?: ActionHandler; }; export type StyledDatasetTitleProps = { clickable: boolean; }; export type DatasetTitleProps = { dataset: KeplerTable; showDeleteDataset: boolean; onTitleClick?: () => void; showDatasetTable?: ActionHandler; updateTableColor: ActionHandler; removeDataset?: ActionHandler; }; export type SourceDataCatalogProps = { datasets: Datasets; showDeleteDataset?: boolean; onTitleClick?: () => void; showDatasetTable?: ActionHandler; updateTableColor: ActionHandler; removeDataset?: ActionHandler; }; export type DatasetItemProps = { value: KeplerTable; }; export type SourceDataSelectorProps = { dataId: string | string[] | null; datasets: Datasets; disabled: boolean; defaultValue?: string; inputTheme: string; onSelect: ( items: | ReadonlyArray | string | number | boolean | object | null ) => void; };