import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { LoginScreen } from '../features/login';
import { route, RouteParams } from '../utils/route';

export type AuthStackParamList = Pick<RouteParams, 'login'>;

const Stack = createNativeStackNavigator<AuthStackParamList>();

export const AuthStack = () => {
  return (
    <Stack.Navigator screenOptions={{ headerShown: false }}>
      <Stack.Screen name={route.login} component={LoginScreen} />
    </Stack.Navigator>
  );
}
