import React, { useState } from 'react'; import { MinusOutlined, PlusOutlined } from '@ant-design/icons'; import { Button, Flex, Progress } from 'antd'; const App: React.FC = () => { const [percent, setPercent] = useState(0); const increase = () => { setPercent((prevPercent) => { const newPercent = prevPercent + 10; if (newPercent > 100) { return 100; } return newPercent; }); }; const decline = () => { setPercent((prevPercent) => { const newPercent = prevPercent - 10; if (newPercent < 0) { return 0; } return newPercent; }); }; return (