F
Size: a a a
F
K
S
AZ
4
O
export default function QrCode({ appointment, size = 200 }) {
const downloadQRCode = () => {
const canvas = document.getElementById('qrCodeEl')
.toDataURL('image/png')
.replace('image/png', 'image/octet-stream')
console.log(canvas)
}
useEffect(() => {
downloadQRCode()
})
return (
<>
<div>
<QRCode
id="qrCodeEl"
value={appointment.authToken}
size={size}
level="H"
includeMargin />
</div>
</>
)
}
S
AZ
AS
В
a
B1
AS
В
В
B1
a
nN
В