Files
parcer/ui/src/components/Sidebar/index.tsx

32 lines
1.0 KiB
TypeScript
Raw Normal View History

2024-03-07 03:25:11 +05:30
import { Layout, Menu } from "antd";
2024-03-07 03:24:42 +05:30
import { Link } from "react-router-dom";
2024-03-07 03:21:54 +05:30
const { Sider } = Layout;
const Sidebar = () => {
2024-03-07 03:28:39 +05:30
return (
<Sider
2024-03-07 03:33:53 +05:30
className="h-screen bg-white text-gray-800 fixed top-16 left-0 flex flex-col justify-between shadow-xl"
2024-03-07 03:28:39 +05:30
width={250}
>
2024-03-07 03:37:16 +05:30
<div className="flex flex-col justify-between h-full mt-16">
2024-03-07 03:28:39 +05:30
<Menu mode="vertical">
<Menu.Item key="1">
<Link to="/bots">Bots</Link>
</Menu.Item>
<Menu.Item key="2">
<Link to="/subscription">Subscription</Link>
</Menu.Item>
<Menu.Item key="3">
<Link to="/api">API</Link>
</Menu.Item>
<Menu.Item key="4">
<Link to="/workflow">Workflow</Link>
</Menu.Item>
</Menu>
</div>
</Sider>
);
2024-03-07 03:21:54 +05:30
};
2024-03-07 03:24:18 +05:30
export default Sidebar;