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 15 16 17 18 19 20 | 4652x | import type { Header } from "@tanstack/react-table";
import { getSortCaret } from "main/components/Common/SortCaretUtils";
type SortCaretProps = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
header: Header<any, unknown>;
testId?: string;
};
export default function SortCaret({
header,
testId = "testid",
}: SortCaretProps): React.JSX.Element {
return (
<span data-testid={`${testId}-header-${header.column.id}-sort-carets`}>
{getSortCaret(header)}
</span>
);
}
|