2024-12-17 12:33:44 +08:00
|
|
|
import { useState } from 'react';
|
|
|
|
|
import { Segmented } from 'antd';
|
|
|
|
|
import SynthesisTheme from './components/SynthesisTheme';
|
|
|
|
|
import RecordTheme from './components/RecordTheme';
|
2024-08-08 16:49:28 +08:00
|
|
|
|
2025-01-12 19:57:49 +08:00
|
|
|
export default () => {
|
2024-12-17 12:08:17 +08:00
|
|
|
const [current, setCurrent] = useState<string>("综合配置");
|
|
|
|
|
|
2024-08-08 16:49:28 +08:00
|
|
|
return (
|
2025-01-12 19:57:49 +08:00
|
|
|
<div>
|
2024-12-17 12:33:44 +08:00
|
|
|
<Segmented<string>
|
|
|
|
|
size="large"
|
|
|
|
|
options={['综合配置', '说说配置']}
|
|
|
|
|
onChange={setCurrent}
|
|
|
|
|
className='md:ml-10 mb-4'
|
|
|
|
|
/>
|
2024-08-08 16:49:28 +08:00
|
|
|
|
2024-12-17 12:33:44 +08:00
|
|
|
{current === "综合配置" && (
|
|
|
|
|
<SynthesisTheme />
|
|
|
|
|
)}
|
2024-08-22 15:27:44 +08:00
|
|
|
|
2024-12-17 12:33:44 +08:00
|
|
|
{current === "说说配置" && (
|
|
|
|
|
<RecordTheme />
|
|
|
|
|
)}
|
2025-01-12 19:57:49 +08:00
|
|
|
</div>
|
2024-08-08 16:49:28 +08:00
|
|
|
);
|
2025-01-12 19:57:49 +08:00
|
|
|
};
|