"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, showCloseButton = true, filter, commandProps, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, ...props }: React.ComponentProps & { title?: string description?: string className?: string showCloseButton?: boolean /** Forwarded to the inner `Command`. Without this seam a dialog cannot rank its own results — * cmdk's default fuzzy score is subsequence-based, which a hidden id in an item's value turns * into noise (see `paletteScore` in `command-palette.tsx`). */ filter?: React.ComponentProps["filter"] /** Selection, keys and filtering switches for the inner `Command` — the ⌘P palette drives its * own selection (cycling) and keys (Tab, Alt+Enter). */ commandProps?: Pick< React.ComponentProps, "value" | "onValueChange" | "onKeyDown" | "shouldFilter" | "loop" > onOpenAutoFocus?: React.ComponentProps["onOpenAutoFocus"] onCloseAutoFocus?: React.ComponentProps["onCloseAutoFocus"] onEscapeKeyDown?: React.ComponentProps["onEscapeKeyDown"] }) { 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, }