import React, { useState } from 'react'; import { PoweroffOutlined } from '@ant-design/icons'; import { Button, Space } from 'antd'; const App: React.FC = () => { const [loadings, setLoadings] = useState([]); const enterLoading = (index: number) => { setLoadings((prevLoadings) => { const newLoadings = [...prevLoadings]; newLoadings[index] = true; return newLoadings; }); setTimeout(() => { setLoadings((prevLoadings) => { const newLoadings = [...prevLoadings]; newLoadings[index] = false; return newLoadings; }); }, 6000); }; return (