import React from 'react'; import { Dialog, Portal, Text } from 'react-native-paper'; import Button from './Button'; interface Props { isVisible: boolean; accept: () => void; deny?: () => void; handleClose: () => void; title?: React.ReactNode | string; body?: React.ReactNode | string; } const VerifyAction = (props: Props) => { const title = typeof props.title === 'string' ? {props.title} : props.title; const body = typeof props.body === 'string' ? {props.body} : props.body; return ( {title} {body} ); }; export default VerifyAction;