import { InfoTooltip } from "./InfoTooltip.js"; interface SortIconProps { dir: "asc" | "desc" | null; } function SortIcon({ dir }: SortIconProps) { return ( ); } interface SortableColumnHeaderProps { label: string; field: string; sortField: string | null; sortDir: "asc" | "desc" | null; onSort: (field: string) => void; className?: string; align?: "left" | "right" | "center"; tooltip?: string; tooltipWidth?: string; } export function SortableColumnHeader({ label, field, sortField, sortDir, onSort, className = "", align = "left", tooltip, tooltipWidth, }: SortableColumnHeaderProps) { const activeDir = sortField === field ? sortDir : null; const alignClass = align === "right" ? "justify-end" : align === "center" ? "justify-center" : "justify-start"; return (