"use client"; import { ArrowUp, ArrowDown, ArrowUpDown } from "lucide-react"; import { TableHead } from "@/components/ui/table"; /** * Shared clickable sort header for the data-management tables * (measurements + mood). Lifted verbatim from the two copy-pasted * `SortableHead` definitions (v1.15.13). Domain specifics — which * columns are sortable, their labels — stay in each list; only this * chrome moves. */ export function SortableHead({ column, label, currentSort, currentDir, onSort, className, }: { column: string; label: string; currentSort: string; currentDir: "asc" | "desc"; onSort: (col: string) => void; className?: string; }) { const isActive = currentSort === column; return ( ); }