import { type DialogProps } from '@radix-ui/react-dialog' import { Command as CommandPrimitive } from 'cmdk' import type * as React from 'react' import { SvgSearch } from '../../icons' import { cn } from '../../utils' import { Modal as Dialog, ModalContent as DialogContent } from '../Modal' import { typographyVariants } from '../Typography' type CommandProps = React.ComponentPropsWithoutRef & { ref?: React.Ref> } const Command = ({ className, ref, ...props }: CommandProps) => ( ) Command.displayName = CommandPrimitive.displayName const CommandDialog = ({ children, ...props }: DialogProps) => { return ( {children} ) } type CommandInputProps = React.ComponentPropsWithoutRef< typeof CommandPrimitive.Input > & { ref?: React.Ref> } const CommandInput = ({ className, ref, ...props }: CommandInputProps) => (
) CommandInput.displayName = CommandPrimitive.Input.displayName type CommandListProps = React.ComponentPropsWithoutRef< typeof CommandPrimitive.List > & { ref?: React.Ref> } const CommandList = ({ className, ref, ...props }: CommandListProps) => ( ) CommandList.displayName = CommandPrimitive.List.displayName type CommandEmptyProps = React.ComponentPropsWithoutRef< typeof CommandPrimitive.Empty > & { ref?: React.Ref> } const CommandEmpty = ({ className, ref, ...props }: CommandEmptyProps) => ( ) CommandEmpty.displayName = CommandPrimitive.Empty.displayName type CommandGroupProps = React.ComponentPropsWithoutRef< typeof CommandPrimitive.Group > & { ref?: React.Ref> } const CommandGroup = ({ className, ref, ...props }: CommandGroupProps) => ( ) CommandGroup.displayName = CommandPrimitive.Group.displayName type CommandSeparatorProps = React.ComponentPropsWithoutRef< typeof CommandPrimitive.Separator > & { ref?: React.Ref> } const CommandSeparator = ({ className, ref, ...props }: CommandSeparatorProps) => ( ) CommandSeparator.displayName = CommandPrimitive.Separator.displayName type CommandItemProps = React.ComponentPropsWithoutRef< typeof CommandPrimitive.Item > & { ref?: React.Ref> } const CommandItem = ({ className, ref, ...props }: CommandItemProps) => ( ) CommandItem.displayName = CommandPrimitive.Item.displayName const CommandShortcut = ({ className, ...props }: React.HTMLAttributes) => { return ( ) } CommandShortcut.displayName = 'CommandShortcut' export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, }