"use client"; import { useState } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { cn } from '@/lib/utils'; import { Button } from '@/components/ui/button'; import { Separator } from '@/components/ui/separator'; import { Home, FolderOpen, Users, Type, Image, History, ChevronLeft, ChevronRight, Video, } from 'lucide-react'; interface SidebarProps { collapsed: boolean; onToggle: (collapsed: boolean) => void; } const navigationItems = [ { title: 'Main', items: [ { name: 'Home', href: '/', icon: Home }, { name: 'Media Library', href: '/media', icon: FolderOpen }, { name: 'Actors Library', href: '/actors', icon: Users }, ], }, { title: 'Plugins', items: [ { name: 'Text to Clip', href: '/plugins/text-to-clip', icon: Type }, { name: 'Text to Image', href: '/plugins/text-to-image', icon: Image }, ], }, { title: 'History', items: [ { name: 'Task History', href: '/history', icon: History }, ], }, ]; export function Sidebar({ collapsed, onToggle }: SidebarProps) { const pathname = usePathname(); return (