import {useTableSort} from "../../../hook/useTableSort.ts"; import type {SearchParams} from "../../../../type/searchParams.ts"; import {CheckBox} from "../../../component/checkbox/CheckBox.tsx"; import {SortableHeaderCell} from "../../../component/table/SortableHeaderCell.tsx"; interface ContentListTableHeaderProps { params: SearchParams; onChange: (params: SearchParams) => void checked: boolean indeterminate: boolean onCheckAll: (checked: boolean) => void } export const ContentListTableHeader = ({ params, onChange, checked, indeterminate, onCheckAll }: ContentListTableHeaderProps) => { const {handleSort, getSortIcon, isSorted} = useTableSort(params, onChange); return ( <>