import { useState } from 'react';
import {
Building2,
Users,
MapPin,
Grid,
Plus,
Eye,
Settings,
Pencil,
GitBranch,
Search,
ChevronDown,
Sparkles
} from "lucide-react";
import Button from "@/components/common/button";
import Table from '@/components/common/dataTable';
import { StatusBadge } from '@/components/common/statusBadge';
import ActionButtons from '@/components/common/actionButton';
export const siteHeaders = [
"Site",
"Tenant",
"Coordinates",
"Radius",
"Status",
"Actions",
];
export const siteRows = [
[
Apple One — HQ Tower
AO-HQ · SIT-3001
,
"Apple One",
19.0760, 72.8777,
200 m,
,
,
],
[
Apple One — Annexe
AO-AX · SIT-3002
,
"Apple One",
19.1020, 72.8895,
150 m,
,
,
],
[
Novotel Pune — Main
NP-M · SIT-3003
,
"Novotel Pune",
18.5604, 73.9090,
180 m,
,
,
],
[
SRM Campus — Academic Block
SRM-AB · SIT-3004
,
"SRM Campus",
12.8230, 80.0444,
400 m,
,
,
],
[
SRM Campus — Hostel Block
SRM-HB · SIT-3005
,
"SRM Campus",
12.8255, 80.0478,
350 m,
,
,
],
[
Local 1 — Site
L1-S · SIT-3006
,
"Local 1",
19.2183, 72.9781,
120 m,
,
,
],
];
export default function SitePortal() {
const [searchQuery, setSearchQuery] = useState('');
return (
{/* --- HEADER SECTION --- */}
PLATFORM
•
SITES
Sites
Physical locations under each tenant. Define geofences with map coordinates and a working radius. Operations site pickers read from here.
{/* --- HEADER BUTTON --- */}
{/* --- TABLE CONTAINER WITH UPPER BAR --- */}
{/* Table Upper UI (Search Bar & Filter Dropdown) */}
{/* Search Bar Input */}
setSearchQuery(e.target.value)}
placeholder="Search sites..."
className="w-full pl-10 pr-4 py-2 bg-slate-950/80 border border-slate-800 rounded-lg text-sm text-slate-200 placeholder-slate-500 focus:outline-none focus:border-slate-700 transition"
/>
{/* All Tenants Filter Select Dropdown */}
{/* --- TABLE --- */}
{/* Footer Record Count */}
{siteRows.length} records
);
}