/*
 * File: AuthNavigator.tsx
 * Description: Stack navigator for Auth module
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */

import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { LoginScreen, SetupBiometricScreen } from '../screens';
import { Colors } from '../../../../shared/src/theme';
import SignUpScreen from '../screens/SignUpScreen';
import ResetPasswordScreen from '../screens/ResetPasswordScreen';

export type AuthStackParamList = {
  Login: undefined;
  SetupBiometric: undefined;
  SignUpScreen:undefined;
  ResetPassword:undefined;
};

const Stack = createNativeStackNavigator<AuthStackParamList>();

/**
 * AuthNavigator sets up stack navigation for Auth module
 */
const AuthNavigator: React.FC = () => (
  <Stack.Navigator
    initialRouteName="Login"
    screenOptions={{
      headerStyle: { backgroundColor: Colors.primary },
      headerTintColor: Colors.background,
      headerTitleStyle: { fontWeight: 'bold' },
    }}
  >
    <Stack.Screen
      name="Login"
      component={LoginScreen}
      options={{ title: 'Login',headerShown:false }}
    />
    <Stack.Screen
      name="SetupBiometric"
      component={SetupBiometricScreen}
      options={{ title: 'Setup Biometric' ,headerShown:false}}
    />
       <Stack.Screen
      name="SignUpScreen"
      component={SignUpScreen}
      options={{ title: 'Setup Biometric' ,headerShown:false}}
    />
       <Stack.Screen
      name="ResetPassword"
      component={ResetPasswordScreen}
      options={{ title: 'Setup Biometric' ,headerShown:false}}
    />
  </Stack.Navigator>
);

export default AuthNavigator;

/*
 * End of File: AuthNavigator.tsx
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */ 