"use client"; import { useState } from "react"; import { Icon, type IconName } from "@/components/icons"; type Method = "qr" | "nfc" | "file"; const methods: Array<{ id: Method; icon: IconName; label: string; eyebrow: string; title: string; text: string; }> = [ { id: "qr", icon: "qr", label: "QR code", eyebrow: "IN THE SAME ROOM", title: "Point. Scan. Connected.", text: "Show the invitation on one screen and scan it from the other. No contact exchange required.", }, { id: "nfc", icon: "nfc", label: "NFC", eyebrow: "THE QUICKEST TAP", title: "Bring devices together.", text: "Write or open an invitation with an NFC tag for a physical, close-range handoff.", }, { id: "file", icon: "file", label: ".vnd file", eyebrow: "SEND IT ANYWHERE", title: "An invitation that travels.", text: "Save the small invitation as a .vnd file, then pass it through the channel you already use.", }, ]; function QrArt() { const filled = new Set([ 0, 1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 28, 29, 30, 31, 32, 36, 38, 40, 42, 44, 48, 49, 50, 51, 52, 54, 56, 58, 60, 62, 64, 66, 67, 69, 72, 73, 74, 76, 78, 79, 80, ]); return (
.vnd
{current.text}