import { Activity, Monitor, Clock, ShieldCheck, Pencil, Trash2, Sparkles, Plus } from "lucide-react"; import InfoBanner from "@/components/common/infoBanner"; import Button from "@/components/common/button"; import NavigationTabs from "@/components/common/tabs"; import { useState } from "react"; import { zoneUtilizationData } from "@/constants/constant"; import StatCard from "@/components/common/dashStatCard"; import { Card } from '@/components/common/cardWrapper'; import { CardHeader } from '@/components/common/cardHeader'; import { workspaceTabs } from '@/constants/tabConstant'; export default function WorkSpacePortal() { const [activeTab, setActiveTab] = useState("Desk Booking"); const deskGrid = Array.from({ length: 48 }).map((_, index) => { if (index === 42) return "reserved"; // 1 Reserved desk if (index >= 36) return "free"; // Free desks on the bottom row return "occupied"; // Occupied desks }); return (
{/* --- HEADER SECTION WITH BUTTONS --- */}
Apple One — HQ Tower WORKPLACE WORKSPACE

Workspace management

Desk booking, live floor plans and shift timetable — unified, all reading the Block → Floor → Zone master.

{/* --- ACTION BUTTONS --- */}
{/* Navigation Tabs */} {/* --- STAT CARDS --- */}
{/* Total desks */} {/* Available */} {/* Occupied */} {/* Utilization */}
{/* --- OCCUPANCY & ZONE UTILIZATION SECTION --- */}
{/* Live Occupancy Grid (Left 2 Columns) */} {/* Desk Layout Grid */}
{deskGrid.map((type, i) => (
))}
{/* Map Legend */}
Free
Reserved
Occupied
{/* Zone Utilization Bars (Right 1 Column) */}
{zoneUtilizationData.map((zone, idx) => { const percentage = Math.round((zone.current / zone.max) * 100); return (
{zone.name} {/* Progress Bar Container */}
{/* Value & Actions */}
{zone.current}/{zone.max}
); })}
{/* Info Banner */}
); }