'use client'; import React from 'react'; import { QRCodeSVG } from 'qrcode.react'; interface QRCodeProps { value: string; size?: number; fgColor?: string; bgColor?: string; level?: 'L' | 'M' | 'Q' | 'H'; includeMargin?: boolean; imageSettings?: { src: string; height: number; width: number; excavate: boolean; }; } export const QRCode: React.FC = ({ value, size = 128, fgColor = '#000000', bgColor = '#FFFFFF', level = 'M', includeMargin = false, imageSettings, }) => { if (!value) { return (
No data
); } return ( ); }; export default QRCode;