import { ObjectForExtending, Prettify } from '../types/utils.type'; import { ReactNode } from 'react'; import { IconButtonProps } from '../../IconButton'; export type HandleExpandDetail = (row: RowType) => void; export type IconsPropType = { closed?: ReactNode; opened?: ReactNode; iconButtonProps?: IconButtonProps; }; export type RowDetailConfig = { rowKeyGetter: (row: RowType) => string | number; isRowWithDetail: (r: RowType) => boolean; renderRowDetail: (props: { row: RowType; tabIndex: number; onRowChange: (row: RowType) => void; rowIdx: number; colIdx: number; }) => ReactNode; detailHeight: number | ((r: RowType) => number); expandButtonColumnKey: string; icons?: Prettify; };