14 lines
491 B
JavaScript
14 lines
491 B
JavaScript
import React from 'react';
|
|
import QrCode from '../../common/qrCode';
|
|
import { Spin } from 'antd';
|
|
export default function Render(props) {
|
|
const { url, expiresAt, oakLoading, disableDownload, size, disabled, color, bgColor } = props.data;
|
|
if (oakLoading) {
|
|
return <Spin />;
|
|
}
|
|
if (url) {
|
|
return <QrCode url={url} expiresAt={expiresAt} disableDownload={disableDownload} size={size} disabled={disabled} color={color} bgColor={bgColor}/>;
|
|
}
|
|
return null;
|
|
}
|