@@ -1,3 +1,6 @@
|
||||
import FintechInvestment, {
|
||||
type FintechView,
|
||||
} from '@/components/fintech-investment';
|
||||
import { createOperationKey } from '@/lib/operation-key';
|
||||
import { Head, Link, router, useForm, usePage } from '@inertiajs/react';
|
||||
import { useState } from 'react';
|
||||
@@ -21,6 +24,8 @@ type Step = {
|
||||
source_paragraph: number;
|
||||
};
|
||||
type Path = {
|
||||
fintech: FintechView | null;
|
||||
sector_contexts: { id: number; name: string; slug: string; href: string }[];
|
||||
case: { id: string; title: string; version: number; closed: boolean };
|
||||
phases: Record<string, string>;
|
||||
steps: Step[];
|
||||
@@ -363,6 +368,40 @@ export default function InvestmentPath(path: Path) {
|
||||
Os meus investimentos
|
||||
</Link>
|
||||
<h1 className="text-2xl font-semibold">{path.case.title}</h1>
|
||||
{!!path.sector_contexts?.length && (
|
||||
<section className="rounded border p-4">
|
||||
<h2 className="text-lg font-semibold">Contexto setorial</h2>
|
||||
<ul>
|
||||
{path.sector_contexts.map((s) => (
|
||||
<li key={s.id}>
|
||||
<Link className="underline" href={s.href}>
|
||||
{s.name}
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<p>
|
||||
Preparação privada nas mesmas cinco fases e 19 etapas; a
|
||||
escolha do setor não publica uma oportunidade.
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
{path.fintech && (
|
||||
<FintechInvestment
|
||||
data={path.fintech}
|
||||
caseId={path.case.id}
|
||||
version={path.case.version}
|
||||
canWrite={path.canWrite}
|
||||
documents={path.documents}
|
||||
simulator={path.tools.simulator}
|
||||
fromArticle={
|
||||
path.content_sources.some(
|
||||
(source) => source.return_href === '/tech-fintech',
|
||||
) ||
|
||||
path.sector_contexts.some((s) => s.slug === 'fintech')
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{!!path.content_sources?.length && (
|
||||
<section
|
||||
className="space-y-2 rounded-xl border p-4"
|
||||
|
||||
Reference in New Issue
Block a user