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