import React from "react"; import { View, Text, ImageBackground, Image, TouchableOpacity, StyleSheet, Linking, } from "react-native"; import { DrawerContentScrollView, DrawerItemList, } from "@react-navigation/drawer"; import { MaterialIcons } from "@expo/vector-icons"; import { Ionicons } from "@expo/vector-icons"; import { useDispatch } from "react-redux"; import { logoutUser } from "../../store/actions/login/loginActions"; import useAuthHook from "../../hooks/useAuthHook"; const CustomDrawer = (props) => { const {logoutAuthProvider} = useAuthHook() const dispatch = useDispatch(); const handleLogout = async () => { logoutAuthProvider() dispatch(logoutUser()); } return ( Diligent Software Linking.openURL("mailto:office@dilig.net")} style={styles.footerButton} > Contact Us Sign Out ); }; const styles = StyleSheet.create({ container: { flex: 1, }, drawer: { backgroundColor: "#8200d6", }, backgroundImage: { padding: 20, }, profileImage: { height: 80, width: 80, borderRadius: 40, marginBottom: 10, }, userName: { color: "#fff", fontSize: 18, marginBottom: 5, fontFamily: "poppins-regular", }, drawerItems: { flex: 1, backgroundColor: "#fff", paddingTop: 10, }, footer: { padding: 20, borderTopWidth: 1, borderTopColor: "#ccc", }, footerButton: { paddingVertical: 15, }, buttonContent: { flexDirection: "row", alignItems: "center", }, footerButtonText: { fontSize: 15, marginLeft: 5, fontFamily: "poppins-regular", }, }); export default CustomDrawer;