diff --git a/frontend/src/components/qrCode/qrCodeGenerator.css b/frontend/src/components/qrCode/qrCodeGenerator.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/components/qrCode/qrCodeGenerator.tsx b/frontend/src/components/qrCode/qrCodeGenerator.tsx new file mode 100644 index 0000000..8c3c8ad --- /dev/null +++ b/frontend/src/components/qrCode/qrCodeGenerator.tsx @@ -0,0 +1,13 @@ +import React from "react"; +import { QRCodeSVG } from "qrcode.react"; +import { qrCodeGeneratorProps } from "./qrCodeGeneratorProps"; + +const QRCodeGenerator: React.FC = ({ url }) => { + return ( +
+ +
+ ); +}; + +export default QRCodeGenerator; diff --git a/frontend/src/components/qrCode/qrCodeGeneratorProps.ts b/frontend/src/components/qrCode/qrCodeGeneratorProps.ts new file mode 100644 index 0000000..ebca946 --- /dev/null +++ b/frontend/src/components/qrCode/qrCodeGeneratorProps.ts @@ -0,0 +1,3 @@ +export interface qrCodeGeneratorProps { + url: string; +}