import LotteryHeader from "@/components/lottery/LotteryHeader"; import LotteryRulesSection from "@/components/lottery/rules/LotteryRulesSection"; import LotteryCountDown from "@/components/lottery/countDown/LotteryCountDown"; import { getTossData } from "@/api/queries"; import { getLotteryStatus } from "@/lib/actions"; import LotteryWinners from "../lottery/LotteryWinners"; const TossPage = async ({ type, id, }: { type: "bije" | "cekilis"; id: string; }) => { const tossData = await getTossData({ type, id }); const status = await getLotteryStatus( tossData?.data?.start_time, tossData?.data?.end_time ); return ( <> {tossData?.data ? (