import React, { useState } from 'react'; import type { RadioChangeEvent } from 'antd'; import { Radio, Space, Tabs } from 'antd'; type TabPosition = 'left' | 'right' | 'top' | 'bottom'; const App: React.FC = () => { const [tabPosition, setTabPosition] = useState('left'); const changeTabPosition = (e: RadioChangeEvent) => { setTabPosition(e.target.value); }; return ( <> Tab position: top bottom left right { const id = String(i + 1); return { label: `Tab ${id}`, key: id, children: `Content of Tab ${id}`, }; })} /> ); }; export default App;