import { Text, Heading } from 'native-base'; import ButtonBase from './ButtonBase'; import { View } from 'react-native'; import { CloseSquare } from 'iconsax-react-native'; import { ReactNode } from 'react'; import Modal from 'react-native-modal'; import React from 'react'; import GlassmorphismCC from './Glassmorphism'; type PopupCCProps = { title?: string; description?: string; children?: ReactNode; isVisible: boolean; setIsVisible?: (isVisible: boolean) => void; }; const PopupCC = ({ title, description, children, isVisible, setIsVisible }: PopupCCProps) => { return ( {setIsVisible !== undefined && ( setIsVisible(false)} /> )} {title !== undefined && ( {title} )} {description !== undefined && {description}} {children !== undefined && children} ); }; export default PopupCC;