Spaces:
Build error
Build error
Create components/DashboardHeader.jsx
Browse files
components/DashboardHeader.jsx
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// components/DashboardHeader.jsx
|
| 2 |
+
import React from 'react';
|
| 3 |
+
import { LogOut, Wallet, Link } from 'lucide-react';
|
| 4 |
+
|
| 5 |
+
const DashboardHeader = () => {
|
| 6 |
+
return (
|
| 7 |
+
<div className="w-full bg-white shadow-sm p-4 mb-6">
|
| 8 |
+
<div className="flex justify-between items-center max-w-7xl mx-auto">
|
| 9 |
+
<div className="flex items-center gap-2">
|
| 10 |
+
<h1 className="text-2xl font-bold">Digital Inheritance Dashboard</h1>
|
| 11 |
+
<span className="text-sm text-gray-500">by Muhammad Shaheer</span>
|
| 12 |
+
</div>
|
| 13 |
+
<div className="flex items-center gap-4">
|
| 14 |
+
<button className="flex items-center gap-2 px-4 py-2 text-gray-600 hover:bg-gray-100 rounded-lg">
|
| 15 |
+
<Wallet size={20} />
|
| 16 |
+
Wallets
|
| 17 |
+
</button>
|
| 18 |
+
<button className="flex items-center gap-2 px-4 py-2 text-gray-600 hover:bg-gray-100 rounded-lg">
|
| 19 |
+
<Link size={20} />
|
| 20 |
+
Link Accounts
|
| 21 |
+
</button>
|
| 22 |
+
<button
|
| 23 |
+
onClick={() => {
|
| 24 |
+
window.location.href = "/"
|
| 25 |
+
}}
|
| 26 |
+
className="flex items-center gap-2 px-4 py-2 text-red-600 hover:bg-red-50 rounded-lg"
|
| 27 |
+
>
|
| 28 |
+
<LogOut size={20} />
|
| 29 |
+
Logout
|
| 30 |
+
</button>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
</div>
|
| 34 |
+
);
|
| 35 |
+
};
|
| 36 |
+
|
| 37 |
+
export default DashboardHeader;
|