import { AnimatePresence, motion } from 'framer-motion'; import { useEffect } from 'react'; import Countdown from 'common/components/countdown/Countdown'; import MyProgressBar from 'common/components/myProgressBar/MyProgressBar'; import NavLogo from 'common/components/nav/NavLogo'; import TitleCard from 'common/components/views/TitleCard'; import style from './PresenterView.module.css'; export default function PresenterView(props) { const { pres, title, time } = props; // Set window title useEffect(() => { document.title = 'ontime - Speaker Screen'; }, []); const showOverlay = pres.text !== '' && pres.visible; const isPlaying = time.playstate !== 'pause'; const normalisedTime = Math.max(time.running, 0); // motion const titleVariants = { hidden: { y: 500, }, visible: { y: 0, transition: { duration: 1, }, }, exit: { y: 500, }, }; return (
{pres.text}
Time Now
{time.clock}
{time.finished ? (
TIME UP
) : (
)}
{!time.finished && (
)} {title.showNow && ( )} {title.showNext && ( )}
); }