import { useEffect } from 'react' import { useDispatch } from 'react-redux' import { wrapper } from '../store' import { startClock, tickClock } from '../actions' import Page from '../components/page' const Other = () => { const dispatch = useDispatch() useEffect(() => { dispatch(startClock()) }, [dispatch]) return } export const getStaticProps = wrapper.getStaticProps(async ({ store }) => { store.dispatch(tickClock(false)) }) export default Other