'use client'; import { useLotteryAuth } from '@/store/useLotteryAuth'; import ProtectedRoute from '@/components/lottery/auth/ProtectedRoute'; import { useLottery } from '@/lib/hooks/useLottery'; import { LOTTERY_CONFIG } from '@/constants/lottery'; import LotteryHeader from '@/components/lottery/LotteryHeader'; import LotteryCounter from '@/components/lottery/RollingCounter/RollingCounter'; import LotteryWinnersSection from '@/components/lottery/LotteryWinnersSection'; import LotteryRulesSection from '@/components/lottery/rules/LotteryRulesSection'; import RollingCounter from '@/components/lottery/RollingCounter/RollingCounter'; const LotteryPage = () => { const { lotteryData } = useLotteryAuth(); const { status, currentNumber } = useLottery(LOTTERY_CONFIG.START_DATE, LOTTERY_CONFIG.END_DATE); return (
{lotteryData && ( )} {(status === 'ended' || status === 'started') && }
); }; export default LotteryPage;