import React from 'react'; import { CheckCircleFilled, CloseCircleFilled, ReloadOutlined } from '@ant-design/icons'; import type { QRCodeProps } from 'antd'; import { Button, Flex, QRCode, Space, Spin } from 'antd'; const value = 'https://ant.design'; const customStatusRender: QRCodeProps['statusRender'] = (info) => { switch (info.status) { case 'expired': return (
{info.locale?.expired}

); case 'loading': return (

Loading...

); case 'scanned': return (
{info.locale?.scanned}
); default: return null; } }; const App: React.FC = () => ( console.log('refresh')} statusRender={customStatusRender} /> ); export default App;