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 { useCheckinCode } from '@/hooks/data/useGetCheckInCode'; 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); return data ? ( <>