& {
hideCancel?: boolean
}) => {
const noChildren = React.Children.count(props.children) === 0
return (
button]:my-1 [&>button]:h-10 sm:[&>button]:my-0 ",
className,
!hideCancel ? "[&>button]:w-full sm:[&>button]:w-fit" : ""
)}
{...props}
>
{!hideCancel && (
)}
{props.children}
)
}
DialogFooter.displayName = "DialogFooter"
const DialogTitle = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef
>(({ className, ...props }, ref) => (
))
DialogTitle.displayName = DialogPrimitive.Title.displayName
const DialogDescription = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef
>(({ className, ...props }, ref) => (
))
DialogDescription.displayName = DialogPrimitive.Description.displayName
export {
Dialog,
DialogTrigger,
DialogContent,
DialogHeader,
DialogFooter,
DialogTitle,
DialogDescription,
}