import React from 'react'; import { Text, View } from 'react-native'; import { Button, useTheme } from 'react-native-nucleus-ui'; import { getPopoverStyles } from './popover.style'; export interface PopoverButtonProps { title: string; onPress: () => void; testID?: string; } export interface PopoverProps { title: string; message: string; actionButton?: PopoverButtonProps; cancelButton?: PopoverButtonProps; } function PopoverComponent(props: PopoverProps) { let { actionButton, cancelButton, message, title } = props; const theme = useTheme(); const styles = getPopoverStyles(theme); return ( {title} {message} {actionButton ? (