import { Badge } from '@szl-holdings/shared-ui/ui/badge'; import { cn } from '@szl-holdings/shared-ui/utils'; import { Leaf, } from 'lucide-react'; import { useState } from 'react'; const CII_DATA = [ { vessel: 'Pacific Navigator', cii: 'B', score: 8.42, limit: 9.1, ytdCO2: 12_480, target: 13_200, trajectory: 'improving', ets: { allocation: 4_200, used: 3_840, price: 62.4, exposure: 23_232 }, }, { vessel: 'Arctic Breeze', cii: 'A', score: 6.18, limit: 7.4, ytdCO2: 8_920, target: 10_400, trajectory: 'stable', ets: { allocation: 2_800, used: 2_230, price: 62.4, exposure: 0 }, }, { vessel: 'Meridian Bulk', cii: 'C', score: 11.84, limit: 10.2, ytdCO2: 16_220, target: 14_280, trajectory: 'worsening', ets: { allocation: 5_100, used: 5_890, price: 62.4, exposure: 49_296 }, }, { vessel: 'Cape Resolute', cii: 'B', score: 9.01, limit: 9.8, ytdCO2: 9_640, target: 10_600, trajectory: 'stable', ets: { allocation: 3_300, used: 3_210, price: 62.4, exposure: 0 }, }, ]; const FUEL_PATHWAYS = [ { fuel: 'VLSFO', co2Factor: 3.151, current: true, cost: 620, availability: 'global', color: 'amber', vessels: 4, }, { fuel: 'LNG', co2Factor: 2.75, current: false, cost: 480, availability: 'major ports', color: 'sky', vessels: 1, }, { fuel: 'Methanol', co2Factor: 1.375, current: false, cost: 890, availability: 'limited', color: 'violet', vessels: 0, }, { fuel: 'Ammonia', co2Factor: 0.0, current: false, cost: 1_240, availability: 'pilot', color: 'emerald', vessels: 0, }, { fuel: 'B30 Biofuel', co2Factor: 2.206, current: false, cost: 710, availability: 'select ports', color: 'teal', vessels: 0, }, ]; const CARBON_CREDITS = [ { type: 'EU Allowances (EUA)', units: 12_400, price: 62.4, value: 773_760, status: 'held', expiry: 'Dec 2026', }, { type: 'Voluntary Carbon (VCS)', units: 8_200, price: 14.2, value: 116_440, status: 'held', expiry: 'None', }, { type: 'Gold Standard', units: 3_500, price: 18.8, value: 65_800, status: 'held', expiry: 'None', }, { type: 'IMO DCS Credits', units: 2_100, price: 22.0, value: 46_200, status: 'pending', expiry: 'Mar 2027', }, ]; const CII_RATING_COLOR: Record = { 'A+': 'text-emerald-300 bg-emerald-500/10 border-emerald-400/30', A: 'text-emerald-400 bg-emerald-500/10 border-emerald-500/20', B: 'text-sky-400 bg-sky-500/10 border-sky-500/20', C: 'text-amber-400 bg-amber-500/10 border-amber-500/20', D: 'text-orange-400 bg-orange-500/10 border-orange-500/20', E: 'text-red-400 bg-red-500/10 border-red-500/20', }; const fuelColor: Record = { amber: 'text-amber-400', sky: 'text-sky-400', violet: 'text-violet-400', emerald: 'text-emerald-400', teal: 'text-teal-400', }; const _fuelBg: Record = { amber: 'bg-amber-500/5 border-amber-500/15', sky: 'bg-sky-500/5 border-sky-500/15', violet: 'bg-violet-500/5 border-violet-500/15', emerald: 'bg-emerald-500/5 border-emerald-500/15', teal: 'bg-teal-500/5 border-teal-500/15', }; function CIIGauge({ cii, score, limit }: { cii: string; score: number; limit: number }) { const pct = Math.min(100, (score / (limit * 1.3)) * 100); const color = cii === 'A' ? '#34d399' : cii === 'B' ? '#38bdf8' : cii === 'C' ? '#fbbf24' : '#f87171'; return (
0 Limit: {limit} {score.toFixed(2)}
); } export default function DecarbonizationPage() { const [tab, setTab] = useState<'cii' | 'ets' | 'fuels' | 'credits'>('cii'); const totalEtsExposure = CII_DATA.reduce((a, v) => a + v.ets.exposure, 0); const totalCO2 = CII_DATA.reduce((a, v) => a + v.ytdCO2, 0); const totalCreditsValue = CARBON_CREDITS.reduce((a, c) => a + c.value, 0); return (

Decarbonization Command Center

IMO 2030 READY

CII tracking, EU ETS compliance, fuel pathway analysis & carbon credit portfolio

${(totalEtsExposure / 1000).toFixed(0)}K

ETS Exposure

${(totalCreditsValue / 1000).toFixed(0)}K

Credit Portfolio

{(totalCO2 / 1000).toFixed(1)}K t

YTD CO₂

{(['cii', 'ets', 'fuels', 'credits'] as const).map((t) => ( ))}
{tab === 'cii' && (
{CII_DATA.map((v) => (
{v.cii}

CII 2026

{v.vessel}

{v.trajectory}

CII Score: {v.score} g CO₂/DWT·nm · Limit: {v.limit}

{v.ytdCO2.toLocaleString()} t

YTD CO₂

{v.target.toLocaleString()} t

Annual target

))}

IMO DCS Reporting

Next submission:{' '} Jun 30, 2026
Status:{' '} On track
Data completeness:{' '} 98.4%
)} {tab === 'ets' && (
{CII_DATA.map((v) => (

{v.vessel}

Allocated EUAs {v.ets.allocation.toLocaleString()} t
Used (YTD) {v.ets.used.toLocaleString()} t
Balance = v.ets.used ? 'text-emerald-400' : 'text-red-400', )} > {(v.ets.allocation - v.ets.used).toLocaleString()} t
EUA Price €{v.ets.price}/t
Financial Exposure 0 ? 'text-amber-400' : 'text-emerald-400', )} > {v.ets.exposure > 0 ? `€${v.ets.exposure.toLocaleString()}` : 'Surplus'}
v.ets.allocation ? '#f87171' : '#34d399', }} />
))}

Fleet EU ETS Summary

Total EUA Allocated:{' '} 15,400 t
Total Used:{' '} 15,170 t
Net Exposure:{' '} €72,528
Hedging Strategy:{' '} Forward purchase recommended
)} {tab === 'fuels' && (
{FUEL_PATHWAYS.map((f) => (
{f.current && ( CURRENT FLEET )}

{f.fuel}

CO₂ Factor {f.co2Factor} g/g
Price ${f.cost}/MT
Availability {f.availability}
Fleet vessels {f.vessels}
CO₂ reduction vs VLSFO
{f.current ? 'baseline' : `-${((1 - f.co2Factor / 3.151) * 100).toFixed(0)}%`}
))}
)} {tab === 'credits' && (
{CARBON_CREDITS.map((c, i) => (

{c.type}

{c.units.toLocaleString()} units · ${c.price.toFixed(1)}/unit · Expires: {c.expiry}

${c.value.toLocaleString()}

{c.status}
))}

Portfolio Summary

Total Value

${(totalCreditsValue / 1000).toFixed(0)}K

Total Units

{CARBON_CREDITS.reduce((a, c) => a + c.units, 0).toLocaleString()}

Net ETS Coverage

86%

)}
); }