'use client'; import * as React from 'react'; import { Command as CommandPrimitive } from 'cmdk'; import { SearchIcon } from 'lucide-react'; import { cn } from '../../shared/utils'; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '../dialog'; /** * Searchable command palette (Cmd+K / Spotlight style). * * @description * Built on cmdk. Abstracts the logic for a search bar that instantly filters * dense groups in real time. Often used inside a `` for a * keyboard-accessible global command launcher. * * @ai-rules * 1. `` does NOT hold form state — it filters the `` in the DOM in real time. * 2. `` REQUIRES the `value` prop to be indexed and filterable when its child is not plain text. * 3. Wrap in `` for a full keyboard-triggered modal palette. */ function Command({ className, ...props }: React.ComponentProps) { return ( ); } function CommandDialog({ title = 'Command Palette', description = 'Search for a command to run...', children, ...props }: React.ComponentProps & { title?: string; description?: string; }) { return ( {title} {description} {children} ); } function CommandInput({ className, ...props }: React.ComponentProps) { return (
); } function CommandList({ className, ...props }: React.ComponentProps) { return ( ); } function CommandEmpty({ ...props }: React.ComponentProps) { return ( ); } function CommandGroup({ className, ...props }: React.ComponentProps) { return ( ); } function CommandSeparator({ className, ...props }: React.ComponentProps) { return ( ); } function CommandItem({ className, ...props }: React.ComponentProps) { return ( ); } function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>) { return ( ); } export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };