import { useState } from 'react'; import { Plus, Download } from 'lucide-react'; import Button from "@/components/common/button"; import NavigationTabs from '@/components/common/tabs'; import { reportFilters, reporttabs, Reqeusttabs, statusFilters } from '@/constants/constant'; import FilterTabs from '@/components/common/roundedFilters'; import Table from '@/components/common/dataTable'; const StatusBadge = ({ text, color, }: { text: string; color: string; }) => ( {text} ); const headers = [ "Code", "Equipment", "Group", "Block · Floor", "Service Provider", "Manufacturer", "Model", ]; const rows = [ [ APP-1100, Cooling Tower, "Electrical", "Block 1 · 2", "Blue Star", "Kirloskar", M-550, ], [ APP-1103, Air Handling Unit, "Plumbing", "Tower A · 1", "Blue Star", "Voltas", M-550, ], [ APP-1106, VRV Outdoor, "Electrical", "Tower A · G", "Voltas", "Daikin", M-320, ], [ APP-1109, VRV Outdoor, "HVAC", "Tower A · 1", "Voltas", "Blue Star", M-320, ], [ APP-1112, Air Handling Unit, "HVAC", "Tower A · G", "In-house", "Voltas", M-550, ], [ APP-1115, Air Handling Unit, "Electrical", "Tower A · 2", "Voltas", "Daikin", M-XR9, ], [ APP-1118, Chiller, "Electrical", "Block 1 · 1", "In-house", "Blue Star", M-XR9, ], [ APP-1121, Cooling Tower, "Plumbing", "Tower A · 1", "Blue Star", "Daikin", M-550, ], ]; export default function ReportPortal() { const [activeTab, setActiveTab] = useState('Equipment'); const [activeFilter, setActiveFilter] = useState('Site All'); const handleDownload = () => { // Add your export/download logic here console.log("Downloading report..."); }; return ( {/* --- HEADER SECTION --- */} Apple One — HQ Tower • INSIGHT • REPORTS Reports & MMR A read-only layer over every module — filter, visualise, and export. Never on the write path. {/* --- NAVIGATION TABS & TOP ACTION BUTTONS --- */} {/* Navigation Tabs */} {/* --- STATUS PILL FILTERS & DOWNLOAD BUTTON --- */} Download ); }
A read-only layer over every module — filter, visualise, and export. Never on the write path.