import { Text, zero } from "@streamplace/components"; import { Pressable, View, ViewStyle } from "react-native"; interface PopupProps { onClose: () => void; onPress?: () => void; containerProps: { style?: ViewStyle }; bubbleProps: { style?: ViewStyle }; children: React.ReactNode; } export default function Popup({ onClose, containerProps, bubbleProps, children, onPress, }: PopupProps) { return ( { if (onPress) { onPress(); } }} > { e.stopPropagation(); onClose(); }} > ✕ {children} ); }