import clsx from 'clsx'; import { PropsWithChildren, ReactNode } from 'react'; import { TableHeaderProps } from 'react-table'; import { Button } from '@@/buttons'; import { useTableContext } from './TableContainer'; import styles from './TableHeaderCell.module.css'; interface Props { canFilter: boolean; canSort: boolean; headerProps: TableHeaderProps; isSorted: boolean; isSortedDesc?: boolean; onSortClick: (desc: boolean) => void; render: () => ReactNode; renderFilter: () => ReactNode; } export function TableHeaderCell({ headerProps: { className, role, style }, canSort, render, onSortClick, isSorted, isSortedDesc, canFilter, renderFilter, }: Props) { useTableContext(); return (