mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 11:53:49 +00:00
22 lines
592 B
TypeScript
22 lines
592 B
TypeScript
import { memo } from 'react';
|
|
import { MaybeString } from 'ontime-types';
|
|
|
|
import Schedule from './Schedule';
|
|
import { ScheduleProvider } from './ScheduleContext';
|
|
import ScheduleNav from './ScheduleNav';
|
|
|
|
interface ScheduleExportProps {
|
|
selectedId: MaybeString;
|
|
}
|
|
|
|
export default memo(ScheduleExport);
|
|
function ScheduleExport(props: ScheduleExportProps) {
|
|
const { selectedId } = props;
|
|
return (
|
|
<ScheduleProvider selectedEventId={selectedId}>
|
|
<ScheduleNav className='schedule-nav-container' />
|
|
<Schedule className='schedule-container' />
|
|
</ScheduleProvider>
|
|
);
|
|
}
|