16 lines
247 B
JavaScript
16 lines
247 B
JavaScript
|
// @flow
|
||
|
|
||
|
import React from 'react';
|
||
|
import QR from 'qrcode.react';
|
||
|
|
||
|
type Props = {
|
||
|
value: string,
|
||
|
size?: number,
|
||
|
};
|
||
|
|
||
|
export const QRCode = ({ value, size }: Props) => <QR value={value} size={size} />;
|
||
|
|
||
|
QRCode.defaultProps = {
|
||
|
size: 128,
|
||
|
};
|