import React from "react"; import { View } from "react-native"; import {Drawer, useTheme} from "react-native-paper"; import styles from "@/assets/styles"; interface DrawerMenuProps { isMenuActive: boolean; onClose: () => void; toggleAbout: () => void; togglePrivacy: () => void; toggleBug: () => void; toggleProfile: () => void; toggleLocation: () => void; } const DrawerMenu: React.FC = ({ isMenuActive, onClose, toggleAbout, togglePrivacy, toggleBug, toggleProfile, toggleLocation }) => { const theme = useTheme(); if (!isMenuActive) { return null; } return ( { toggleProfile(); onClose(); }} /> { toggleLocation(); onClose(); }} /> { toggleAbout(); onClose(); }} /> { togglePrivacy(); onClose(); }} /> { toggleBug(); onClose(); }} /> ); }; export default DrawerMenu;