import React from 'react';
import {createStackNavigator} from '@react-navigation/stack';

import {Login, Registration} from '../screens';

export type RootStackParams = {
  Login: undefined;
  Registration: undefined;
};

const RootStack = createStackNavigator<RootStackParamList>();

interface RoutesProps {}

const Routes: React.FC<RoutesProps> = ({}) => {
  return (
    <RootStack.Navigator initialRouteName="Login">
      <RootStack.Screen name="Login" component={Login} options={ { headerShown: false} }/>
      <RootStack.Screen name="Registration" component={Registration} />
    </RootStack.Navigator>
  );
};

export default Routes;
