import React from "react"; import { Modal, View, Animated } from "react-native"; import { styles, getWidgetVisibility } from "../styles/widgetStyles"; import { CloseButton } from "./CloseButton"; import { useHeightAnimation } from "../hooks/useHeightAnimation"; interface ModalWidgetProps { visible: boolean; height: number; children?: React.ReactNode; onClose?: () => void; } export const ModalWidget: React.FC = ({ visible, height, children, onClose }) => { const { animatedHeightStyle } = useHeightAnimation(height); return ( {children} ); };