"use client" import * as React from "react" import { Command as CommandPrimitive } from "cmdk" import { SearchIcon } from "lucide-react" import { cn } from "@/app/lib/utils" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/app/components/ui/dialog" // cmdk's default is fuzzy, which matches unrelated items on long names and SKUs const substringFilter = (value: string, search: string, keywords?: string[]) => `${value} ${keywords?.join(" ") ?? ""}`.toLowerCase().includes(search.toLowerCase()) ? 1 : 0 function Command({ className, ...props }: React.ComponentProps) { return ( ) } function CommandDialog({ title = "Command palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }: React.ComponentProps & { title?: string description?: string className?: string showCloseButton?: boolean }) { 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, }