freshyo/apps/user-ui/app/(drawer)/(tabs)/me/coupons/_layout.tsx
2026-08-23 20:06:25 +05:30

18 lines
402 B
TypeScript

import { Stack, useLocalSearchParams } from 'expo-router';
export default function CouponsLayout() {
const { from } = useLocalSearchParams<{ from?: string }>();
return (
<Stack>
<Stack.Screen
name="index"
options={{
title: 'My Coupons',
headerShown: true,
headerBackVisible: from !== 'cart',
}}
/>
</Stack>
);
}