// packages/core/src/components/data-table/data-table-header-cell.tsx import type { JSX } from "solid-js"; import { Show } from "solid-js"; import { useInternalDataTableContext } from "./data-table-context"; export interface DataTableHeaderCellProps { columnId: string; header: string; sortable?: boolean; } /** Maps the current sort state to an aria-sort attribute value. */ function toAriaSort(direction: string): JSX.AriaAttributes["aria-sort"] { if (direction === "asc") return "ascending"; if (direction === "desc") return "descending"; return "none"; } /** * Renders a single `