// @flow
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import React, { useCallback } from 'react';
import { useSelector } from 'react-redux';
import { CalendarList, isCalendarEnabled } from '../../calendar-sync';
import { screen } from '../../conference/components/native/routes';
import { RecentList } from '../../recent-list';
import {
calendarListTabBarOptions,
recentListTabBarOptions,
tabBarOptions
} from '../constants';
const WelcomePage = createBottomTabNavigator();
/**
* The type of the React {@code Component} props of {@link WelcomePageTabs}.
*/
type Props = {
/**
* Renders the lists disabled.
*/
disabled: boolean
};
const WelcomePageTabs = ({ disabled }: Props) => {
const RecentListScreen = useCallback(() =>
);
const calendarEnabled = useSelector(isCalendarEnabled);
const CalendarListScreen = useCallback(() =>
);
return (
{ RecentListScreen }
{
calendarEnabled
&&
{ CalendarListScreen }
}
);
};
export default WelcomePageTabs;