import { Modal, Pressable, View } from "react-native"; import { ReactNode } from "react"; import { useThemeStore } from "../stores/ThemeStore"; import { CardBase } from "./CardBase"; type ModalBaseProps = { visible: boolean; onClose: () => void; title: string; subtitle?: string; children: ReactNode; attachment?: ReactNode; footer?: { label: string; onPress: () => void; }; scrollable?: boolean; maxContentHeight?: number; }; export const ModalBase = ({ visible, onClose, title, subtitle, children, attachment, footer, scrollable, maxContentHeight, }: ModalBaseProps) => { const { theme } = useThemeStore(); return ( {/* Backdrop - absolute positioned behind the card */} {/* Card content - on top, naturally blocks touches to backdrop */} {children} ); }; export default ModalBase;