import { useState } from 'react'; import { Plus, Eye, KeyRound, Search, } from "lucide-react"; import Button from "@/components/common/button"; import Table from '@/components/common/dataTable'; import { userHeaders, userRows } from '@/constants/adminTableDatat'; export default function UserPortal() { const [searchQuery, setSearchQuery] = useState(''); return (
{/* --- HEADER SECTION --- */}
PLATFORM USERS

Users

All platform user accounts. Create credentials, assign tenants, and manage passwords. This is the single account store — Operations role access reads from here.

{/* --- HEADER BUTTON --- */}
{/* --- TABLE CONTAINER WITH UPPER BAR --- */}
{/* Table Upper UI (Full-width Search Bar matching screenshot) */}
setSearchQuery(e.target.value)} placeholder="Search users by name, email or ID..." className="w-full pl-10 pr-4 py-2.5 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" />
{/* --- TABLE --- */} {/* Footer Record Count */}
{userRows.length} records
); }