import { ArrowDown, ArrowUp } from "lucide-react"; import { HeaderHelpLabel } from "@/client/features/keywords/components"; type SortableColumn = { getIsSorted: () => false | "asc" | "desc"; getToggleSortingHandler: () => ((event: unknown) => void) | undefined; }; export function SortableHeader({ column, label, helpText, align, }: { column: SortableColumn; label: string; helpText?: string; align?: "left" | "right"; }) { const sorted = column.getIsSorted(); const content = ( ); if (align === "right") { return {content}; } return content; }