import { ArrowDown, ArrowUp, ChevronsUpDown, EyeOff } from "lucide-react" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { DataTableColumnHeaderProps } from "@/types" export function DataTableColumnHeader({ column, title, className, }: DataTableColumnHeaderProps) { if (!column.getCanSort()) { return
{title}
} return (
column.toggleSorting(false)}> Asc column.toggleSorting(true)}> Desc column.toggleVisibility(false)}> Hide
) }