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

import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { ProfileScreen, SettingsScreen, PreferencesScreen } from '../screens';
import { Colors } from '../../../../shared/src/theme';

export type ProfileStackParamList = {
  ProfileScreen: undefined;
  Settings: undefined;
  Preferences: undefined;
};

const Stack = createStackNavigator<ProfileStackParamList>();

/**
 * ProfileNavigator sets up stack navigation for Profile module
 */
const ProfileNavigator: React.FC = () => (
  <Stack.Navigator
    initialRouteName="ProfileScreen"
    screenOptions={{
      headerStyle: { backgroundColor: Colors.primary },
    }}
  >
    <Stack.Screen
      name="ProfileScreen"
      component={ProfileScreen}
      options={{ title: 'Profile',headerShown:false }}
    />
    <Stack.Screen
      name="Settings"
      component={SettingsScreen}
      options={{ title: 'Settings' }}
    />
    <Stack.Screen
      name="Preferences"
      component={PreferencesScreen}
      options={{ title: 'Preferences' }}
    />
  </Stack.Navigator>
);

export default ProfileNavigator;

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