// src/components/Sidebar.tsx
import { ApartmentOutlined, ApiOutlined, HomeOutlined, InfoCircleOutlined, SettingOutlined } from '@ant-design/icons';
import { Layout, Menu } from 'antd';
import React from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import { PATHS } from '../routes';
import '../theme/layout.less';
const { Sider } = Layout;
const menuItems = [
{ key: PATHS.HOME, icon: , label: 'Home' },
{ key: PATHS.NETWORK, icon: , label: 'Network' },
{ key: PATHS.SNIFFING, icon: , label: 'Sniffing' },
{ key: '/about', icon: , label: 'About' },
{ key: '/settings', icon: , label: 'Settings' },
];
interface SidebarProps {
collapsed: boolean;
onCollapse: (collapsed: boolean) => void;
}
const Sidebar: React.FC = ({ collapsed, onCollapse }) => {
const navigate = useNavigate();
const location = useLocation();
return (
);
};
export default Sidebar;