import { useState } from 'react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from '@/components/ui/dialog'; import { QRCode } from '@/components/ui/shadcn-io/qr-code'; import { Button } from '../ui/button'; export function QrDialog( { eventId }: { eventId: string }, ) { const [open, setOpen] = useState(false); return ( QR Code 请工作人员扫描下面的二维码为你签到。 ); } function QrSection({ eventId, enabled }: { eventId: string; enabled: boolean }) { // const { data } = useCheckinCode(eventId, enabled); const data = { data: { checkin_code: `dummy${eventId}${enabled}` } }; return data ? ( <>
{data.data.checkin_code}
) : ( ); } function QrSectionSkeleton() { return ( <>
Loading...
); }