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 ( ); } function QrSection({ eventId, enabled }: { eventId: string; enabled: boolean }) { // const { data } = useCheckinCode(eventId, enabled); const data = { data: { checkin_code: `dummy${eventId}${enabled}` } }; return data ? ( <>