import React from "react"; import { Portal, Button, Dialog, useTheme } from "react-native-paper"; import About from "@/components/About"; import Privacy from "@/components/Privacy"; import Broken from "@/components/Broken"; interface DialogsProps { aboutVisible: boolean; privacyVisible: boolean; bugVisible: boolean; locationVisible: boolean; toggleAbout: () => void; togglePrivacy: () => void; toggleBug: () => void; toggleLocation: () => void; } const Dialogs: React.FC = ({ aboutVisible, privacyVisible, bugVisible, locationVisible, toggleAbout, togglePrivacy, toggleBug, toggleLocation }) => { const theme = useTheme(); return ( toggleAbout()} style={{backgroundColor: theme.colors.primaryContainer}}> About Us togglePrivacy()} style={{backgroundColor: theme.colors.primaryContainer}}> Privacy Policy toggleBug()} style={{backgroundColor: theme.colors.primaryContainer}}> Report A Bug toggleLocation()} style={{backgroundColor: theme.colors.primaryContainer}}> Location ) } export default Dialogs;