"use client"; import { translations, Language } from "../lib/translations"; import type { Dispatch, SetStateAction } from "react"; type SidebarTab = | "Dashboard" | "Tender Search" | "My Portfolio" | "Company Profile" | "Agent Analysis" | "Proposal Draft" | "Reports" | "History" | "About"; type Props = { tabs: readonly SidebarTab[]; activeTab: SidebarTab; onTabSelect: Dispatch>; status: string; lang: Language; }; export default function Sidebar({ tabs, activeTab, onTabSelect, status, lang }: Props) { const t = translations[lang]; const getTabLabel = (tab: SidebarTab) => { switch(tab) { case "Dashboard": return t.dashboard; case "Tender Search": return t.tenderSearch; case "My Portfolio": return t.myPortfolio; case "Company Profile": return t.companyProfile; case "Agent Analysis": return t.agentAnalysis; case "Proposal Draft": return t.proposalDraft; case "Reports": return t.reports; case "History": return t.history; case "About": return t.about; default: return tab; } }; return ( ); }