"use client"; import { BadgeCheckIcon } from "lucide-react"; import type { CurrencyConfig } from "@/lib/banking/format"; import { CurrencyAmount } from "@/components/frontend/banking/CurrencyAmount"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { HireStaffDialog } from "@/components/frontend/baseManagement/HireStaffDialog"; import type { LaborClassificationOption, StructureStaffingOption } from "@/lib/base"; interface EmploymentCardProps { readonly employment: { readonly positionTitle: string; readonly positionType: string; readonly structureName: string; readonly salary: number; } | null; readonly structures: readonly StructureStaffingOption[]; readonly canManage: boolean; readonly npcId: number; readonly npcName?: string; readonly classifications?: readonly LaborClassificationOption[]; readonly hiringEnabled: boolean; readonly hiringDisabledMessage?: string; readonly currencyConfig: CurrencyConfig; } export function EmploymentCard({ employment, structures, canManage, npcId, npcName, classifications, hiringEnabled, hiringDisabledMessage, currencyConfig, }: EmploymentCardProps) { return ( Employment Current base assignment and compensation. {employment ? (

{employment.positionTitle}

{employment.positionType} ยท {employment.structureName}

/tick

) : canManage && hiringEnabled ? (

Not currently employed.

) : canManage ? (

Not currently employed.

{hiringDisabledMessage || "Staff hiring is currently disabled."}

) : (

Not currently employed.

)}
); }