puwanath commited on
Commit
addb2e0
·
verified ·
1 Parent(s): 73cba23

Upload components/POSHeader.jsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/POSHeader.jsx +55 -0
components/POSHeader.jsx ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+ import { ShoppingBag, User, Settings, LogOut, Menu } from 'lucide-react';
3
+
4
+ const POSHeader = ({ onMenuClick, cartCount, userName }) => {
5
+ return (
6
+ <header className="bg-white border-b border-pos-border sticky top-0 z-50">
7
+ <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
8
+ <div className="flex justify-between items-center h-16">
9
+ <div className="flex items-center gap-4">
10
+ <button
11
+ onClick={onMenuClick}
12
+ className="p-2 rounded-lg hover:bg-pos-bg transition-colors text-pos-text"
13
+ >
14
+ <Menu className="w-6 h-6" />
15
+ </button>
16
+ <div className="flex items-center gap-2">
17
+ <div className="bg-primary-600 p-2 rounded-lg">
18
+ <ShoppingBag className="w-6 h-6 text-white" />
19
+ </div>
20
+ <div>
21
+ <h1 className="text-xl font-bold text-pos-text">SmartPOS</h1>
22
+ <p className="text-xs text-pos-text-secondary">ร้านค้าตัวอย่าง</p>
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div className="flex items-center gap-4">
28
+ <div className="hidden md:flex items-center gap-2 bg-pos-bg px-4 py-2 rounded-lg">
29
+ <div className="w-3 h-3 bg-success rounded-full animate-pulse"></div>
30
+ <span className="text-sm font-medium text-pos-text">เปิดแคสser</span>
31
+ </div>
32
+
33
+ <div className="flex items-center gap-3">
34
+ <div className="text-right hidden sm:block">
35
+ <p className="text-sm font-medium text-pos-text">{userName || 'แอดมิน'}</p>
36
+ <p className="text-xs text-pos-text-secondary">ผู้จัดการร้าน</p>
37
+ </div>
38
+ <div className="h-10 w-10 bg-primary-100 rounded-full flex items-center justify-center text-primary-600">
39
+ <User className="w-5 h-5" />
40
+ </div>
41
+ <button className="p-2 rounded-lg hover:bg-pos-bg transition-colors text-pos-text">
42
+ <Settings className="w-5 h-5" />
43
+ </button>
44
+ <button className="p-2 rounded-lg hover:bg-danger/10 transition-colors text-danger">
45
+ <LogOut className="w-5 h-5" />
46
+ </button>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </header>
52
+ );
53
+ };
54
+
55
+ export default POSHeader;