feat(#13): Adds initial support for QR Code generation

This commit is contained in:
Elia el Lazkani 2025-01-02 15:49:21 +01:00
parent 1887be54e5
commit efe85d23e8
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;
}