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

import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { DashboardScreen } from '../screens';
import { Colors } from '../../../../shared/src/theme';
import DashBoardDetail from '../screens/DashBoardDetail';

export type DashboardStackParamList = {
  DashboardScreen: undefined;
  DashboardDetailScreen:{
    caseType: 'Critical' | 'Routine' | 'Emergency';
  };
  // Add more screens here as needed

}

const Stack = createStackNavigator<DashboardStackParamList>();

/**
 * DashboardNavigator sets up stack navigation for Dashboard module
 */
const DashboardNavigator: React.FC = () => (
  <Stack.Navigator
    initialRouteName="DashboardScreen"
    screenOptions={{
      headerStyle: { backgroundColor: Colors.primary },
    }}
  >
    <Stack.Screen
      name="DashboardScreen"
      component={DashboardScreen}
      options={{ title: 'Dashboard' ,headerShown:false}}
    />
      <Stack.Screen
      name="DashboardDetailScreen"
      component={DashBoardDetail}
      options={{ title: 'Dashboard' ,headerShown:false}}
    />
    {/* Add more screens here */}
  </Stack.Navigator>
);

export default DashboardNavigator;

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