"use client" import * as React from "react" import { cn } from "cn" import { Autocomplete, Collection, composeRenderProps, Header, Input, Menu, MenuItem, MenuSection, SearchField, Separator, useFilter, type AutocompleteProps, type InputProps, type MenuItemProps, type MenuProps, type MenuSectionProps, type SeparatorProps, } from "react-aria-components" import { Dialog, DialogDescription, DialogHeader, DialogTitle, } from "@/registry/bases/aria/ui/dialog" import { InputGroup, InputGroupAddon, } from "@/registry/bases/aria/ui/input-group" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" function Command({ className, dir, style, ...props }: Omit & { className?: string dir?: React.HTMLAttributes["dir"] style?: React.CSSProperties }) { const { contains } = useFilter({ sensitivity: "base" }) return (
{props.children}
) } function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, open, onOpenChange, className, showCloseButton = false, ...props }: Omit< React.ComponentProps, "children" | "className" | "isOpen" | "onOpenChange" > & { title?: string description?: string open?: boolean onOpenChange?: (isOpen: boolean) => void className?: string showCloseButton?: boolean children: React.ReactNode }) { return ( {title} {description} {children} ) } function CommandInput({ className, ...props }: InputProps) { return ( ) } function CommandList({ className, ...props }: MenuProps) { return ( ) } function CommandEmpty({ className, ...props }: React.ComponentProps<"div">) { return (
) } function CommandGroup({ className, children, items, heading, ...props }: MenuSectionProps & { heading?: string }) { return ( {heading &&
{heading}
} {children}
) } function CommandSeparator({ className, ...props }: SeparatorProps) { return ( ) } function CommandItem({ className, children, textValue, ...props }: MenuItemProps) { return ( {composeRenderProps(children, (children) => ( <> {children} ))} ) } function CommandShortcut({ className, ...props }: React.ComponentProps<"span">) { return ( ) } export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, }