Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 4652x 3462x 2x 3460x 1x 3459x | import type { Header } from "@tanstack/react-table";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function getSortCaret(header: Header<any, unknown>): string {
if (!header.column.getCanSort()) return "";
if (header.column.getIsSorted() === "asc") {
return "🔼";
}
if (header.column.getIsSorted() === "desc") {
return "🔽";
}
return "";
}
|