import { useState } from 'react'; import { Plus, Search, ChevronDown, } from "lucide-react"; import Button from "@/components/common/button"; import Table from '@/components/common/dataTable'; import { siteHeaders, siteRows } from "@/constants/adminTableData"; 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
); }