feat(offers): add gated phase three public catalogue in QA
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { Link } from '@inertiajs/react';
|
||||
import { Frame } from '@/pages/investment/shared';
|
||||
import type { PublicOffer } from '@/lib/public-offer';
|
||||
import PublicOfferCard from '@/components/public-offer-card';
|
||||
import CatalogueInvestmentMap from '@/components/catalogue-investment-map';
|
||||
|
||||
export default function OfferPublicDetail({ offer }: { offer: PublicOffer }) {
|
||||
const territoryId = offer.location.at(-1)?.id;
|
||||
return (
|
||||
<Frame title={offer.title} mainClassName="max-w-4xl">
|
||||
<Link className="mb-5 inline-block underline" href="/ofertas">
|
||||
Voltar às ofertas
|
||||
</Link>
|
||||
<PublicOfferCard offer={offer} detail />
|
||||
{territoryId && (
|
||||
<section className="mt-6">
|
||||
<h2 className="mb-3 text-xl font-semibold">
|
||||
Contexto territorial
|
||||
</h2>
|
||||
<CatalogueInvestmentMap
|
||||
points={[]}
|
||||
territoryId={territoryId}
|
||||
mapKind="administrative"
|
||||
/>
|
||||
</section>
|
||||
)}
|
||||
</Frame>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user