import { ReactNode } from "react"; import { View, StyleProp, ViewStyle } from "react-native"; import { Dialog, Portal } from "react-native-paper"; import { useAppSelector } from "@/store/hooks"; import { selectIsMobile } from "@/store/screen/screenSizeSlice"; interface DialogContainerProps { visible: boolean; onDismiss: () => void; dialogStyle?: StyleProp; children: ReactNode; } export const DialogContainer = ({ visible, onDismiss, dialogStyle, children, }: DialogContainerProps) => { const isMobile = useAppSelector(selectIsMobile); const dialogWidth = isMobile ? "95%" : "60%"; return ( {children} ); };