import { BadgeCustom, BaseBox, Grid, StackCustom, TextCustom } from "@/components"; import dayjs from "dayjs"; import { View } from "moti"; interface Admin_BoxEventParticipantProps { item: any; startDate?: dayjs.Dayjs; } export function Admin_BoxEventParticipant({ item, startDate, }: Admin_BoxEventParticipantProps) { return ( {item?.User?.username} +{item?.User?.nomor} {startDate && startDate.subtract(1, "hour").diff(dayjs()) < 0 ? ( {item?.isPresent ? "Hadir" : "Tidak Hadir"} ) : ( - )} ); }