import { useEffect, useState } from 'react'; import { Container, Row, Col, InputGroup, Button, Form } from 'react-bootstrap'; import HyperMig from '@/assets/logo.png'; import Widget from '@/components/Widget'; import DonutChart from './DonutChart'; const CURRENT_DATE = new Date(); const END_DATE = new Date( CURRENT_DATE.getFullYear() + 1, CURRENT_DATE.getMonth(), CURRENT_DATE.getDate(), CURRENT_DATE.getHours(), CURRENT_DATE.getMinutes(), ); function ComingSoon() { const [time, setTime] = useState(END_DATE.getTime() - CURRENT_DATE.getTime()); const remainingHours = Math.floor(time / 1000 / 60 / 60); const remainingMinutes = Math.floor(time / 1000 / 60); const remainingSeconds = Math.floor(time / 1000); const days = Math.floor(time / 1000 / 60 / 60 / 24); const hours = remainingHours - days * 24; const minutes = remainingMinutes - remainingHours * 60; const seconds = remainingSeconds - remainingMinutes * 60; useEffect(() => { const timer = setTimeout(() => setTime((prevTime) => prevTime - 100), 100); if (time <= 0) clearTimeout(timer); return () => clearTimeout(timer); }, [time]); return (

HyperMig

Our Website Is Almost Ready..

Time Left Untile Launching

Days

{days}

Hours

{hours}

Minutes

{minutes}

Seconds

{seconds}
); } export default ComingSoon;