"use client"; import { IconLayoutRows } 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 { TaskGroupBy } from "@/lib/state/slices/office/types"; const GROUP_OPTIONS: { value: TaskGroupBy; label: string }[] = [ { value: "none", label: "No grouping" }, { value: "status", label: "Status" }, { value: "priority", label: "Priority" }, { value: "assignee", label: "Assignee" }, { value: "project", label: "Project" }, { value: "parent", label: "Parent" }, ]; type IssueGroupProps = { groupBy: TaskGroupBy; onGroupByChange: (groupBy: TaskGroupBy) => void; }; export function TaskGroup({ groupBy, onGroupByChange }: IssueGroupProps) { return ( Group by

Group by

{GROUP_OPTIONS.map((opt) => ( ))}
); }