WIP: Adds support for QR Code generation #27

Draft
elia wants to merge 1 commit from qr-code into main
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import React from "react";
import { QRCodeSVG } from "qrcode.react";
import { qrCodeGeneratorProps } from "./qrCodeGeneratorProps";
const QRCodeGenerator: React.FC<qrCodeGeneratorProps> = ({ url }) => {
return (
<div>
<QRCodeSVG id="qrCodeSVG" value={url} />
</div>
);
};
export default QRCodeGenerator;

View file

@ -0,0 +1,3 @@
export interface qrCodeGeneratorProps {
url: string;
}