'use client'; import { AlignInfoIcon as IconInfoCustom } from '@/components/misc/alignui-icons'; import * as React from 'react'; import * as ScrollArea from '@radix-ui/react-scroll-area'; import { BookOpen, ChevronRight, Focus, Gift, GitFork, HeartHandshake, LayoutDashboard, LayoutGrid, LineChart, PieChart, Search, Star, } from 'lucide-react'; import * as Button from '@/components/ui/button'; import * as CommandMenu from '@/components/ui/command-menu'; import * as CompactButton from '@/components/ui/compact-button'; import * as Kbd from '@/components/ui/kbd'; import { cn } from '@/utils/cn'; const ScrollbarVertical = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...rest }, ref) => { return ( ); }); ScrollbarVertical.displayName = 'ScrollbarVertical'; export default function HrCategoriesCommandMenu() { const [open, setOpen] = React.useState(false); const [activeItem, setActiveItem] = React.useState('Dashboards'); const categories = [ { title: 'Benefits & Compensation', description: 'Employee benefits, salary, and rewards', count: '18', icon: , }, { title: 'Employee Development', description: 'Career growth and skill development', count: '24', icon: , }, { title: 'Employee Relations', description: 'Workplace relationships and culture', count: '12', icon: , }, { title: 'Onboarding', description: 'New employee integration process', count: '36', icon: , }, { title: 'Performance', description: 'Employee evaluation and metrics', count: '48', icon: , }, { title: 'Recruitment', description: 'Hiring and talent acquisition', count: '22', icon: , }, { title: 'Training', description: 'Learning and development programs', count: '16', icon: , }, { title: 'Workflows', description: 'Automated workflows and processes', count: '16', icon: , }, { title: 'Analytics', description: 'Data analysis and reporting', count: '16', icon: , }, ]; const sidebarItems = [ { title: 'Analytics', icon: , }, { title: 'Categories', icon: , }, { title: 'Dashboards', icon: , }, { title: 'Workflows', icon: , }, ]; return ( <> setOpen(true)} > Open Command Menu
{/* Sidebar */}
{sidebarItems.map((item) => (
setActiveItem(item.title)} className={cn( 'rounded-8 rounded-10 flex shrink-0 cursor-pointer items-center gap-2 p-2 text-left', 'transition-all duration-200 ease-out', activeItem === item.title ? 'text-primary-600 bg-bg-weak-50 font-medium' : 'text-text-sub-500 hover:bg-bg-weak-50', )} > {item.icon} {item.title} {activeItem === item.title && ( )}
))}
{/* Main Content */}
{/* Search Input */}
⌘K
{/* Categories List */}
{categories.map((category) => (
{category.icon}
{category.title} ({category.count})
{category.description}
))}
); }