import React, { useState } from 'react'; import { QRCodeSVG } from 'qrcode.react'; import { Button } from "@/components/ui/button"; import { Check, Copy } from "lucide-react"; interface QRCodeProps { text: string; width?: number; height?: number; } const QRCode: React.FC = ({ text, width = 256, height = 256 }) => { const [copied, setCopied] = useState(false); const handleCopy = async () => { await navigator.clipboard.writeText(text); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (
); }; export default QRCode;