'use client' import { Drawer, Menu, Avatar, Typography, Image, Flex, Row, Col } from 'antd' import { UserOutlined, LeftOutlined } from '@ant-design/icons' import { useRouter } from 'next/navigation' import type { SidebarProps } from '@/types/sidebar' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faHome, faComment, faUserAlt, faQuestionCircle, faPlug, faWallet, faCog, faSignOut } from '@fortawesome/free-solid-svg-icons' 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 */} Ruccan AI Labs PRODUCT MANAGER Amirul Baharuddin {/* Main Menu */} MAIN , label: 'Dashboard', }, { key: '/user/chat', icon: , label: 'Ruccan Chat', }, { key: '/user/persona', icon: , label: 'Persona', }, { key: '/user/knowledge', icon: , label: 'Knowledge', }, { key: '/user/integration', icon: , label: 'Integration', }, { key: '/user/wallet', icon: , label: 'Wallet', }, ]} /> {/* Settings & Others */} SETTINGS , label: 'Settings', children: [ { key: '/settings/general', icon: , label: 'General', }, { key: '/settings/profile', icon: , label: 'Profile', }, { key: '/settings/chat-preference', icon: , label: 'Chat Preference', } ] } ]} /> , label: 'Help', }, { key: '/logout', icon: , label:

Logout

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