({ children, ...props }: DialogProps)
| 24 | Command.displayName = CommandPrimitive.displayName |
| 25 | |
| 26 | const CommandDialog = ({ children, ...props }: DialogProps) => { |
| 27 | return ( |
| 28 | <Dialog {...props}> |
| 29 | <DialogContent className="overflow-hidden p-0 shadow-lg"> |
| 30 | <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"> |
| 31 | {children} |
| 32 | </Command> |
| 33 | </DialogContent> |
| 34 | </Dialog> |
| 35 | ) |
| 36 | } |
| 37 | |
| 38 | const CommandInput = React.forwardRef< |
| 39 | React.ElementRef<typeof CommandPrimitive.Input>, |
nothing calls this directly
no outgoing calls
no test coverage detected