main
tsx 45 lines 1.78 KB
Raw
1 import { Button } from "@/components/ui/button";
2 import { ArrowLeft, Bell, User } from "lucide-react";
3 import { Link, useNavigate } from "react-router-dom";
4 import { ThemeToggle } from "@/components/ThemeToggle";
5
6 const EmployeeHeader = () => {
7 const navigate = useNavigate();
8
9 return (
10 <header className="fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-md border-b border-border">
11 <div className="container flex items-center justify-between h-16 md:h-20">
12 <div className="flex items-center gap-4">
13 <Link to="/" className="flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors">
14 <ArrowLeft className="w-5 h-5" />
15 <span className="hidden sm:inline text-sm font-medium">Back to Home</span>
16 </Link>
17 </div>
18
19 <div className="flex items-center gap-2">
20 <span className="text-xl font-bold text-foreground">Snac</span>
21 <span className="text-sm text-muted-foreground">| Employee Portal</span>
22 </div>
23
24 <div className="flex items-center gap-2">
25 <Button
26 onClick={() => navigate('/pay-ai-agent')}
27 className="bg-primary text-primary-foreground hover:bg-primary/90 font-semibold rounded-full px-4"
28 >
29 Pay AI Agent
30 </Button>
31 <ThemeToggle />
32 <Button variant="ghost" size="icon" className="relative">
33 <Bell className="w-5 h-5 text-muted-foreground" />
34 <span className="absolute top-1 right-1 w-2 h-2 bg-primary rounded-full" />
35 </Button>
36 <Button variant="ghost" size="icon">
37 <User className="w-5 h-5 text-muted-foreground" />
38 </Button>
39 </div>
40 </div>
41 </header>
42 );
43 };
44
45 export default EmployeeHeader;