"use client"; import { IconArrowsSort, IconSortAscending, IconSortDescending } from "@tabler/icons-react"; import { Button } from "@kandev/ui/button"; import { Popover, PopoverContent, PopoverTrigger } from "@kandev/ui/popover"; import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip"; import { cn } from "@/lib/utils"; import type { TaskSortField, TaskSortDir } from "@/lib/state/slices/office/types"; const SORT_FIELDS: { value: TaskSortField; label: string }[] = [ { value: "updated", label: "Updated" }, { value: "created", label: "Created" }, { value: "status", label: "Status" }, { value: "priority", label: "Priority" }, { value: "title", label: "Title" }, ]; type IssueSortProps = { field: TaskSortField; dir: TaskSortDir; onFieldChange: (field: TaskSortField) => void; onDirChange: (dir: TaskSortDir) => void; }; export function TaskSort({ field, dir, onFieldChange, onDirChange }: IssueSortProps) { return ( Sort

Sort by

{SORT_FIELDS.map((f) => ( ))}
); }