'use client'; import * as React from 'react'; import { Command as CommandPrimitive } from 'cmdk'; import { SearchIcon } from 'lucide-react'; import { motion } from 'motion/react'; import { cn } from '@/lib/utils'; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; function Command({ className, ...props }: React.ComponentProps) { return ( ); } function CommandDialog({ title = 'Command Palette', description = 'Search for a command to run...', children, className, showCloseButton = false, shouldFilter, ...props }: React.ComponentProps & { title?: string; description?: string; className?: string; showCloseButton?: boolean; shouldFilter?: boolean; }) { return ( {title} {description} {children} ); } function CommandInput({ className, ...props }: React.ComponentProps) { return (
); } function CommandList({ className, children, ...props }: React.ComponentProps) { const ref = React.useRef(null); const [height, setHeight] = React.useState('auto'); React.useEffect(() => { if (ref.current) { const resizeObserver = new ResizeObserver((entries) => { for (const entry of entries) { setHeight(entry.contentRect.height); } }); resizeObserver.observe(ref.current); return () => resizeObserver.disconnect(); } }, []); return ( {children} ); } 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, };