"use client" import * as React from "react" import { Command as CommandPrimitive } from "cmdk" import { SearchIcon } from "lucide-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, ...props }: React.ComponentProps & { title?: string description?: string className?: 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 ( { // Ensure hover updates selection for visual feedback const item = e.currentTarget item.setAttribute("data-selected", "true") // Deselect siblings const siblings = item.parentElement?.querySelectorAll("[cmdk-item]") siblings?.forEach((sibling) => { if (sibling !== item) { sibling.setAttribute("data-selected", "false") } }) }} {...props} /> ) } function CommandShortcut({ className, ...props }: React.ComponentProps<"span">) { return ( ) } export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, }