"use client";
import { IconChevronDown, IconPlus, IconRocket } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@kandev/ui/dropdown-menu";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
/**
* Split-button: primary "Implement" runs the plan inline in the current
* session; the dropdown caret offers "Implement in fresh agent" which starts
* a new session with a clean context window. `onClick(fresh)` is invoked
* with `false` for the primary path and `true` for the fresh-agent path.
*/
export function ImplementPlanButton({ onClick }: { onClick: (fresh: boolean) => void }) {
const primary = (