import React from "react";
import PropTypes from "prop-types";
import {
Portal,
Text,
} from "react-native-paper";
import { createStackNavigator } from "@react-navigation/stack";
import HomeScreen from "./timetable/HomeScreen";
import AddEntry from "./timetable/AddEntry";
const Stack = createStackNavigator();
export default function Timetable({ addTimetableEntry, removeTimetableEntry, timetable, subjects }) {
const days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
if (subjects.length === 0) {
return (
No Subjects added. Add Subjects first.
);
}
return (
{(props) => (
)}
{(props) => (
)}
);
}
Timetable.propTypes = {
timetable: PropTypes.array,
subjects: PropTypes.array,
addTimetableEntry: PropTypes.func,
removeTimetableEntry: PropTypes.func,
};