import React from "react"; import { View } from "react-native"; import { Dialog, cn } from "heroui-native"; import { OVERLAY_STYLE } from "../helpers/utils"; export interface NDialogProps { children?: React.ReactNode; trigger?: React.ReactNode; title: string; description?: string; isOpen?: boolean; isDefaultOpen?: boolean; onOpenChange?: (isOpen: boolean) => void; isSwipeable?: boolean; className?: string; titleClassName?: string; descriptionClassName?: string; contentClassName?: string; } export const NDialog = React.memo( ({ children, trigger, title, description, isOpen, isDefaultOpen, onOpenChange, isSwipeable, className = "", titleClassName = "", descriptionClassName = "", contentClassName = "", }) => { return ( {trigger && {trigger}} {title} {description && ( {description} )} {children} ); }, ); NDialog.displayName = "NDialog";