/**
 * 课程表 Stack 导航
 * 处理课程表相关页面
 */
import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import type { ScheduleStackParamList } from './types';

import { colors } from '../theme';
import { ScheduleScreen, CourseDetailScreen } from '../screens/schedule';

const ScheduleStack = createNativeStackNavigator<ScheduleStackParamList>();

export function ScheduleNavigator() {
  return (
    <ScheduleStack.Navigator
      screenOptions={{
        headerShown: false,
      }}
    >
      <ScheduleStack.Screen
        name="Schedule"
        component={ScheduleScreen}
        options={{
          title: '课表',
        }}
      />
      <ScheduleStack.Screen
        name="CourseDetail"
        component={CourseDetailScreen}
        options={{
          headerShown: false,
          presentation: 'transparentModal',
          animation: 'fade',
          contentStyle: {
            backgroundColor: 'transparent',
          },
        }}
      />
    </ScheduleStack.Navigator>
  );
}
