import { useState } from 'react';
import {
Layers,
ShieldCheck,
CheckSquare,
Clock,
Search,
QrCode,
Power,
List,
Pencil,
Plus,
} from 'lucide-react';
import Button from "@/utils/button";
import StatCard from "@/utils/dashStatCard";
import Table from "@/utils/dataTable";
import NavigationTabs from '@/utils/tabs';
import { helpdeskTtabs } from '@/constants/constant';
const StatusBadge = ({
text,
color,
}: {
text: string;
color: string;
}) => (
{text}
);
const ActionButtons = ({ active }: { active: boolean }) => (
);
const headers = [
"",
"Block",
"Floor",
"Zone",
"Department",
"Location",
"Window",
"TAT",
"Sched.",
"Approval",
"Status",
"Actions",
];
const checkbox = (
);
const rows = [
[
checkbox,
"Block 2",
"1",
"Z2",
"HVAC",
Parking P1,
01:56–18:00,
"60m",
"4",
✓ Yes,
,
,
],
[
checkbox,
"Block 1",
"2",
"Z1",
"Inspection work",
Cafeteria,
01:56–23:59,
"360m",
"6",
—,
,
,
],
[
checkbox,
"Block 2",
"G",
"N",
"Inspection work",
Main lobby,
08:00–23:59,
"360m",
"4",
✓ Yes,
,
,
],
[
checkbox,
"Block 1",
"2",
"Z2",
"Electrical",
Reception,
08:00–18:00,
"360m",
"4",
—,
,
,
],
[
checkbox,
"Block 2",
"3",
"Z1",
"Housekeeping",
Cafeteria,
08:00–18:00,
"20m",
"8",
✓ Yes,
,
,
],
[
checkbox,
"Block 1",
"3",
"Z1",
"Electrical",
Food court,
08:00–17:30,
"20m",
"8",
—,
,
,
],
[
checkbox,
"Block 2",
"1",
"Z2",
"HVAC",
Parking P1,
01:56–18:00,
"60m",
"4",
✓ Yes,
,
,
],
[
checkbox,
"Block 1",
"2",
"Z1",
"Inspection work",
Cafeteria,
01:56–23:59,
"360m",
"6",
—,
,
,
],
[
checkbox,
"Block 2",
"G",
"N",
"Inspection work",
Main lobby,
08:00–23:59,
"360m",
"4",
✓ Yes,
,
,
],
[
checkbox,
"Block 1",
"2",
"Z2",
"Electrical",
Reception,
08:00–18:00,
"360m",
"4",
—,
,
,
],
[
checkbox,
"Block 2",
"3",
"Z1",
"Housekeeping",
Cafeteria,
08:00–18:00,
"20m",
"8",
✓ Yes,
,
,
],
[
checkbox,
"Block 1",
"3",
"Z1",
"Electrical",
Food court,
08:00–17:30,
"20m",
"8",
—,
,
,
],
];
export default function HelpDeskPortal() {
const [activeTab, setActiveTab] = useState('Location');
return (
{/* --- HEADER SECTION --- */}
Apple One — HQ Tower
•
Operations
•
Help Desk
Help Desk & checklists
Scheduled location and equipment inspections, missed-checklist recovery, and HSQE incident management.
{/* Reusable Navigation Tabs */}
{/* Total Checklists */}
{/* Active */}
{/* Approval Set */}
{/* Avg TAT */}
{/* --- ROW 2: SEARCH, FILTERS & ACTION BUTTONS --- */}
{/* Search & Select Filters */}
{/* Search Bar */}
{/* Block Dropdown */}
{/* Status Dropdown */}
{/* Action Buttons */}
{/* --- TABLE CONTAINER --- */}
);
}