import React, { useState } from 'react'; import { MinusOutlined, PlusOutlined } from '@ant-design/icons'; import { Button, QRCode } from 'antd'; const MIN_SIZE = 48; const MAX_SIZE = 300; const App: React.FC = () => { const [size, setSize] = useState(160); const increase = () => { setSize((prevSize) => { const newSize = prevSize + 10; if (newSize >= MAX_SIZE) { return MAX_SIZE; } return newSize; }); }; const decline = () => { setSize((prevSize) => { const newSize = prevSize - 10; if (newSize <= MIN_SIZE) { return MIN_SIZE; } return newSize; }); }; return ( <> ); }; export default App;