import * as React from 'react'; import CourseSection from '../util/CourseSection'; import ScheduleBadge from './ScheduleBadge'; interface ScheduleRootProps { schedule: CourseSection[]; removeCourseSection: (courseSection: CourseSection) => any; generateCalendarUrl: () => string; openCalendarAsWebcal: () => void; downloadIcs: () => Promise; } /** * Weird component that renders the ScheduleBadge * * TODO: Remove this component? Or maybe refactor some of ScheduleBadge into this */ const ScheduleRoot = ({ schedule, removeCourseSection, generateCalendarUrl, openCalendarAsWebcal, downloadIcs, }: ScheduleRootProps) => (
{/* */} {/* */}
); export default ScheduleRoot;