import { useState } from 'react'; import { Plus, Eye, KeyRound, Search, Sparkles } from "lucide-react"; import Button from "@/components/common/button"; import Table from '@/components/common/dataTable'; import { StatusBadge } from '@/components/common/statusBadge'; export const userHeaders = [ "Name", "Email", "Phone", "Tenants", "MFA", "User ID", "Actions", ]; const UserActionButtons = () => (
); export const userRows = [ [
DT
Dhananjay T.
, dhananjay@kafm.io , +91 98200 10001 , 4 assigned , , USR-5001 , , ], [
MS
ME Supervisor
, me.local@kafm.io , +91 98201 10010 , 1 assigned , , USR-5002 , , ], [
T
Technician
, tech.local@kafm.io , +91 98202 10011 , 2 assigned , , USR-5003 , , ], [
TC
Tenant Customer
, tenant@kafm.io , +91 98203 10012 , 1 assigned , , USR-5004 , , ], [
HA
Helpdesk Agent
, help@kafm.io , +91 98204 10013 , 2 assigned , , USR-5005 , , ], [
EA
Energy Analyst
, energy@kafm.io , +91 98430 30030 , 1 assigned , , USR-5006 , , ], ]; 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
); }