freshyo/apps/user-ui/app/(drawer)/(tabs)/me/_layout.tsx
2026-01-24 00:13:15 +05:30

17 lines
No EOL
384 B
TypeScript

import { useAuthenticatedRoute } from "@/hooks/useAuthenticatedRoute";
import { Stack } from "expo-router";
export default function MeLayout() {
// Protect all profile routes - redirect to login if not authenticated
useAuthenticatedRoute({
targetUrl: '/(drawer)/(tabs)/me'
});
return (
<Stack
screenOptions={{
headerShown: false,
}}
/>
);
}