"use client"; // Adapted command to be used as a form field with suggestions // Find original shadcn/ui command component in /components/ui/command.tsx import * as React from "react"; import { type DialogProps } from "@radix-ui/react-dialog"; import { Command as CommandPrimitive } from "cmdk"; import { Search } from "lucide-react"; import { Dialog, DialogBody, DialogContent } from "@/src/components/ui/dialog"; import { cn } from "@/src/utils/tailwind"; const InputCommand = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); InputCommand.displayName = CommandPrimitive.displayName; interface InputCommandDialogProps extends DialogProps {} const InputCommandDialog = ({ children, ...props }: InputCommandDialogProps) => { return ( {children} ); }; const InputCommandInput = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { variant?: "default" | "bottom"; } >(({ className, variant = "default", ...props }, ref) => (
)); InputCommandInput.displayName = CommandPrimitive.Input.displayName; const InputCommandList = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); InputCommandList.displayName = CommandPrimitive.List.displayName; const InputCommandEmpty = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >((props, ref) => ( )); InputCommandEmpty.displayName = CommandPrimitive.Empty.displayName; const InputCommandGroup = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); InputCommandGroup.displayName = CommandPrimitive.Group.displayName; const InputCommandSeparator = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); InputCommandSeparator.displayName = CommandPrimitive.Separator.displayName; const InputCommandItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); InputCommandItem.displayName = CommandPrimitive.Item.displayName; const InputCommandShortcut = ({ className, ...props }: React.HTMLAttributes) => { return ( ); }; InputCommandShortcut.displayName = "CommandShortcut"; export { InputCommand, InputCommandDialog, InputCommandInput, InputCommandList, InputCommandEmpty, InputCommandGroup, InputCommandItem, InputCommandShortcut, InputCommandSeparator, };