"use client"; import { useState } from "react"; import { Plus, } from "lucide-react"; import Button from "@/components/common/button"; import { blocks, floors, zones } from "@/constants/constant"; export default function MasterDataPortal() { const [activeTab, setActiveTab] = useState("Block / Floor / Zone"); // Sample data for the hierarchy cards return (
{/* --- BREADCRUMB --- */}
APPLE ONE — HQ TOWER CONFIGURE MASTER DATA
{/* --- PAGE HEADER --- */}

Master data

Every transactional module reads from these masters — keep them complete and they cascade across equipment, requests, budgets, training and reports.

{/* --- CATEGORY BUTTONS / TABS --- */}
{/* Row 1: Site & Location, Assets, Operations, Finance */}
{/* SITE & LOCATION */}
SITE & LOCATION
{/* ASSETS */}
ASSETS
{["Manufacturer", "Service Provider", "Criticality"].map((item) => ( ))}
{/* OPERATIONS */}
OPERATIONS
{["Service Type", "Unit", "Store", "Partners"].map((item) => ( ))}
{/* FINANCE */}
FINANCE
{["Budget Category", "Budget Type"].map((item) => ( ))}
{/* Row 2: People */}
PEOPLE
{/* --- INFO BANNER --- */}
Within a site: sites themselves are defined in{" "} Administration → Sites (with geofence). Here you manage the Block / Floor / Zone hierarchy inside the active site — reused by Equipment, Desks, Requests and Floor plans.
{/* --- ACTION BUTTON --- */}
{/* --- HIERARCHY CARDS GRID --- */}
{/* Block Column */}

Block

{blocks.length}
{blocks.map((item, idx) => (
{item}
ACTIVE
))}
{/* Floor Column */}

Floor

{floors.length}
{floors.map((item, idx) => (
{item}
ACTIVE
))}
{/* Zone Column */}

Zone

{zones.length}
{zones.map((item, idx) => (
{item}
ACTIVE
))}
); }