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

48 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-03-07 02:30:04 +05:30
import { Layout, Menu, Col } from "antd";
2024-03-07 02:29:43 +05:30
import { Link } from "react-router-dom";
2024-03-07 02:43:22 +05:30
import { FaBars } from "react-icons/fa";
2024-03-07 02:29:43 +05:30
const { Header } = Layout;
const Topbar = () => {
return (
<Header className="flex justify-between items-center h-16 bg-white shadow-md">
<Col span={4} className="flex items-center">
<Link to="/">
2024-03-07 02:31:00 +05:30
<img src="maxun_logo.png" alt="Maxun" className="h-8 w-auto" />
2024-03-07 02:29:43 +05:30
</Link>
</Col>
<Col span={16} className="hidden lg:flex justify-end">
<Menu mode="horizontal">
<Menu.Item key="1">
2024-03-07 02:31:53 +05:30
<Link to="/link1">Dashboard</Link>
2024-03-07 02:29:43 +05:30
</Menu.Item>
<Menu.Item key="2">
2024-03-07 02:31:53 +05:30
<Link to="/link2">Credits</Link>
2024-03-07 02:29:43 +05:30
</Menu.Item>
<Menu.Item key="3">
2024-03-07 02:31:53 +05:30
<Link to="/link3">Profile</Link>
2024-03-07 02:29:43 +05:30
</Menu.Item>
</Menu>
</Col>
<Col span={4} className="lg:hidden flex justify-end">
2024-03-07 02:43:22 +05:30
<FaBars className="text-2xl text-gray-600" />
2024-03-07 02:29:43 +05:30
<button className="text-gray-600 focus:outline-none">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
className="w-6 h-6"
>
<path d="M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z" />
</svg>
</button>
</Col>
</Header>
);
};
export default Topbar;