doctor-mail/apps/web/src/app/main/help/PsychologyNav.tsx

88 lines
2.8 KiB
TypeScript
Raw Normal View History

2025-05-01 19:11:49 +08:00
import { Tabs } from 'antd';
import {
VideoCameraOutlined,
FileTextOutlined,
CustomerServiceOutlined,
ReadOutlined,
BookOutlined
} from '@ant-design/icons';
import { VideoContent } from './VideoContent';
import { MusicContent } from './MusicContent';
import { ScienceContent } from './ScienceContent';
2025-05-05 19:51:44 +08:00
import { PublicityContent } from './PublicityContent';
import { ExampleContent } from './ExampleContent';
2025-05-01 19:11:49 +08:00
import './pt.css';
export function PsychologyNav() {
const items = [
2025-05-05 19:51:44 +08:00
{
key: 'publicity',
label: (
<span className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
<BookOutlined className="text-lg" />
<span></span>
</span>
),
children: <PublicityContent />
},
2025-05-01 19:11:49 +08:00
{
key: 'science',
2025-05-05 19:51:44 +08:00
label: (
<span className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
< ReadOutlined className="text-lg" />
<span></span>
</span>
),
children: <ScienceContent />
},
{
key: 'example',
label: (
<span className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
<VideoCameraOutlined className="text-lg" />
<span></span>
</span>
),
children: <ExampleContent />
},
{
key: 'video',
2025-05-01 19:11:49 +08:00
label: (
<span className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
< FileTextOutlined className="text-lg" />
<span></span>
</span>
),
children: <VideoContent />
},
{
2025-05-05 19:51:44 +08:00
key: 'music',
2025-05-01 19:11:49 +08:00
label: (
<span className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
<CustomerServiceOutlined className="text-lg" />
<span></span>
</span>
),
children: <MusicContent />
},
];
return (
<div className="w-full from bg-white rounded-lg shadow-md">
<Tabs
2025-05-05 19:51:44 +08:00
defaultActiveKey="publicity"
2025-05-01 19:11:49 +08:00
items={items}
className="psychology-tabs"
tabBarStyle={{
margin: 0,
padding: '12px 16px 0',
borderBottom: '1px solid #f0f0f0'
}}
tabBarGutter={200}
/>
</div>
);
}
export default PsychologyNav;