import { PropsWithChildren } from 'react'; import { Row } from 'react-table'; import { ChevronDown, ChevronRight } from 'lucide-react'; import { Icon } from '@@/Icon'; import styles from './ExpandingCell.module.css'; interface Props = Record> { row: Row; showExpandArrow: boolean; } export function ExpandingCell< D extends Record = Record >({ row, showExpandArrow, children }: PropsWithChildren>) { return ( <> {showExpandArrow && ( )} {children} ); }