Integrate mining and energy references into sector and dossier journeys

This commit is contained in:
2026-11-11 14:10:15 +02:00
parent 4971f8935b
commit 542ac2ff2c
22 changed files with 2535 additions and 18 deletions
+17
View File
@@ -1,3 +1,4 @@
import type { SectorResourceSelection } from '@/components/sector-resource-reference';
import {
financialCategories,
financialTypes,
@@ -44,6 +45,7 @@ type Step = {
source_paragraph: number;
};
type Path = {
sector_references?: SectorResourceSelection[];
funding_selections?: {
id: string;
title: string;
@@ -639,6 +641,21 @@ export default function InvestmentPath(path: Path) {
)}
</label>
)}
{!!path.sector_references?.length && (
<section className="space-y-3 rounded border p-4">
<h2 className="text-lg font-semibold">Sectores e cadeias de valor</h2>
{path.sector_references.map((reference) => (
<article key={reference.key}>
<h3>{reference.title}</h3>
<p>{reference.location_label ?? reference.locations_text}</p>
<p>{reference.value_chain}</p>
<Link className="underline" href={reference.href}>
Consultar a referência mineral
</Link>
</article>
))}
</section>
)}
<ContextDocuments
source={path.investment_context?.selection.opportunity}
/>