stream/app.js
2022-09-07 14:37:34 +02:00

47 lines
1.2 KiB
JavaScript
Executable File

import { h } from 'preact'
import { H1 } from './src/components/Text'
import Page from './src/layouts/Page'
export default () => (
<Page>
<H1>LANGING PAGE</H1>
</Page >
)
// useEffect(() => {
// if (calData && calData.length) {
// calData.forEach((stream, index) => {
// const utcStartDate = zonedTimeToUtc(
// new Date(stream.start),
// 'Europe/Berlin'
// )
// const utcEndDate = zonedTimeToUtc(new Date(stream.end), 'Europe/Berlin')
// const { timeZone } = Intl.DateTimeFormat().resolvedOptions()
// const zonedStartDate = utcToZonedTime(utcStartDate, timeZone)
// const zonedEndDate = utcToZonedTime(utcEndDate, timeZone)
// if (
// isWithinInterval(new Date(), {
// start: subHours(zonedStartDate, 1),
// end: addHours(zonedEndDate, 1),
// })
// ) {
// setCurrentVideo(stream)
// }
// if (
// isWithinInterval(new Date(), {
// start: zonedStartDate,
// end: zonedEndDate,
// })
// ) {
// setStreamIsLive(true)
// }
// })
// }
// }, [calData, eventsData, eventsLoading])