import ButtonBackHeader from "@/components/buttonBackHeader"; import HeaderDiscussionGeneral from "@/components/discussion_general/headerDiscussionGeneral"; import HeaderRightDivisionList from "@/components/division/headerDivisionList"; import HeaderMemberList from "@/components/member/headerMemberList"; import HeaderRightProjectList from "@/components/project/headerProjectList"; import { Headers } from "@/constants/Headers"; import store from "@/lib/store"; import { useAuthSession } from "@/providers/AuthProvider"; import { Redirect, router, Stack } from "expo-router"; import { StatusBar } from 'expo-status-bar'; import { Text } from "react-native"; import { Provider } from "react-redux"; export default function RootLayout() { const { token, isLoading } = useAuthSession() if (isLoading) { return Loading...; } if (!token?.current) { return ; } return ( { router.back() }} />, title: 'Anggota', headerTitleAlign: 'center', headerRight: () => }} /> { router.back() }} />, title: 'Diskusi Umum', headerTitleAlign: 'center', headerRight: () => }} /> { router.back() }} />, title: 'Kegiatan', headerTitleAlign: 'center', headerRight: () => }} /> { router.back() }} />, title: 'Divisi', headerTitleAlign: 'center', headerRight: () => }} /> ) }