'use client' import { Drawer, Menu, Divider, Avatar, Typography } from 'antd' import { HomeOutlined, MessageOutlined, UserOutlined, BookOutlined, ApiOutlined, WalletOutlined, SettingOutlined, QuestionCircleOutlined, LogoutOutlined, LeftOutlined } from '@ant-design/icons' import { useRouter } from 'next/navigation' import type { SidebarProps } from '@/types/sidebar' const { Text } = Typography const Sidebar = ({ open = false, setOpen = () => { } }: SidebarProps) => { const router = useRouter() const handleClick = (e: { key: string }) => { router.push(e.key) setOpen(false) } return ( setOpen(false)} open={open} width={250} mask={false} styles={{ body: { padding: "0 10px", }, }} > {/* Custom Close Button */} {/* Top: Avatar/Profile */}
} />
PRODUCT MANAGER
Amirul Baharuddin
{/* Main Menu */}

MAIN

, label: 'Dashboard', }, { key: '/chat', icon: , label: 'Ruccan Chat', }, { key: '/persona', icon: , label: 'Persona', }, { key: '/knowledge', icon: , label: 'Knowledge', }, { key: '/integration', icon: , label: 'Integration', }, { key: '/wallet', icon: , label: 'Wallet', }, ]} />
{/* Settings & Others */}

SETTINGS

, label: 'Settings', children: [ { key: '/settings/general', icon: , // General settings still makes sense label: 'General', }, { key: '/settings/profile', icon: , // Profile = user-related label: 'Profile', }, { key: '/settings/chat-preference', icon: , // Chat preference = chat/message label: 'Chat Preference', } ] } ]} />
, label: 'Help', }, { key: '/logout', icon: , label:

Logout

, }, ]} />
) } export default Sidebar