/** * Tab navigator layout for authenticated users. * * Registers three tabs: Upload (default), Files, and Profile. * Push notifications are initialised here so they activate as soon as the * user enters the authenticated area. */ import { Tabs } from "expo-router"; import { Ionicons } from "@expo/vector-icons"; import React from "react"; import { usePushNotifications } from "../../src/hooks/usePushNotifications"; import { useAuth } from "../../src/context/AuthContext"; export default function TabLayout() { const { isAuthenticated } = useAuth(); usePushNotifications(isAuthenticated); return ( ( ), headerTitle: "DocuElevate", }} /> ( ), headerTitle: "My Documents", }} /> ( ), headerTitle: "Profile", }} /> ); }