import Link from 'next/link' import { useEffect, useState } from 'react' import Navbar from '../components/Navbar' const IndexPage = () => { const [timeString, setTimeString] = useState('Morning') useEffect(() => { const hours = new Date().getHours() console.log(new Date()) if (hours < 12) { setTimeString('Morning') } else if (hours >= 12 && hours <= 17) { setTimeString('Afternoon') } else if (hours >= 17 && hours <= 24) { setTimeString('Evening') } }) return (