(null);\n\n const closeButton = showCloseButton && (\n }\n >\n \n Close\n \n );\n\n const popup = (\n \n {children}\n {closeButton}\n \n );\n\n if (scrollBehavior === \"outside\") {\n return (\n \n \n \n \n );\n }\n\n return (\n \n \n {popup}\n \n );\n}\n\n// =============================================================================\n// ModalHeader\n// =============================================================================\nexport interface ModalHeaderProps extends React.ComponentProps<\"div\"> {}\n\nfunction ModalHeader({ className, ...props }: ModalHeaderProps) {\n return (\n \n );\n}\n\n// =============================================================================\n// ModalFooter\n// =============================================================================\nexport interface ModalFooterProps extends React.ComponentProps<\"div\"> {\n /**\n * Whether to show a \"Close\" outline button at the end of the footer.\n * @default false\n */\n showCloseButton?: boolean;\n}\n\nfunction ModalFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: ModalFooterProps) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n
\n );\n}\n\n// =============================================================================\n// ModalTitle\n// =============================================================================\nexport interface ModalTitleProps extends DialogPrimitive.Title.Props {}\n\nfunction ModalTitle({ className, ...props }: ModalTitleProps) {\n return (\n \n );\n}\n\n// =============================================================================\n// ModalDescription\n// =============================================================================\nexport interface ModalDescriptionProps\n extends DialogPrimitive.Description.Props {}\n\nfunction ModalDescription({ className, ...props }: ModalDescriptionProps) {\n return (\n \n );\n}\n\nexport type { ModalContentVariantsProps };\n// =============================================================================\n// Exports\n// =============================================================================\nexport {\n Modal,\n ModalClose,\n ModalContent,\n ModalDescription,\n ModalFooter,\n ModalHeader,\n ModalOverlay,\n ModalPortal,\n ModalTitle,\n ModalTrigger,\n modalContentVariants,\n};\n",
"type": "registry:ui"
}
],
"type": "registry:ui"
}