import type { Issue } from "@paperclipai/shared"; import { Boxes, CircleCheck, CirclePlus, FolderOpen, History, LayoutDashboard, MessageCircle, Package, Repeat, Search, Unplug, Users } from "lucide-react"; import { useCompany } from "@/context/CompanyContext"; import { SidebarAccountMenu } from "./SidebarAccountMenu"; import { SidebarCompanyMenu } from "./SidebarCompanyMenu"; import { SidebarNavExpandedProvider, SidebarNavItem } from "./SidebarNavItem"; import { SidebarSection } from "./SidebarSection"; import { TruncatedTextMarqueeProvider } from "./TruncatedText"; import { Button } from "./ui/button"; import { FlyoutAppearanceProvider } from "./ui/flyout"; import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip"; import { useScrollbarWhileScrolling } from "./side-panel/use-scrollbar-while-scrolling"; export type DesignSidebarRecentTask = Pick; /** Shared staged sidebar. The caller supplies company-scoped recent tasks and actions. */ export function DesignSidebar({ onNewTask, recentTasks = [] }: { onNewTask: () => void; recentTasks?: readonly DesignSidebarRecentTask[] }) { const { selectedCompany } = useCompany(); const root = `/${selectedCompany?.issuePrefix ?? "PAP"}`; const companyRecentTasks = recentTasks.filter(task => task.companyId === selectedCompany?.id); const handleRecentScroll = useScrollbarWhileScrolling(); return (
Search tasks, agents, projects
); }