({ children, ...props }: CommandDialogProps)
| 26 | interface CommandDialogProps extends DialogProps {} |
| 27 | |
| 28 | const CommandDialog = ({ children, ...props }: CommandDialogProps) => { |
| 29 | return ( |
| 30 | <Dialog {...props}> |
| 31 | <DialogContent className="overflow-hidden p-0 shadow-lg"> |
| 32 | <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"> |
| 33 | {children} |
| 34 | </Command> |
| 35 | </DialogContent> |
| 36 | </Dialog> |
| 37 | ) |
| 38 | } |
| 39 | |
| 40 | const CommandInput = React.forwardRef< |
| 41 | React.ElementRef<typeof CommandPrimitive.Input>, |
nothing calls this directly
no outgoing calls
no test coverage detected