Loading problem…
This problem builds on data-table. Complete that first, then load your solution to continue.
Build an enhanced Data Table component that extends the base Data Table with row selection functionality. This builds on top of the sorting feature from the base Data Table.
interface Column {
key: string;
label: string;
sortable?: boolean;
}
interface DataTableProps {
data: Record<string, any>[];
columns: Column[];
showSelection?: boolean;
}<DataTable
data={data}
columns={columns}
showSelection={true}
/>