import type { ServicePageContent } from "@/lib/site-content"; /** "Investimento e prazo": só mostra os campos preenchidos com valor real; sem nenhum, a seção não aparece. */ export function ServiceOffer({ service, }: { service: Pick< ServicePageContent, "startingPrice" | "typicalTimeline" | "guarantee" >; }) { const offer = [ { label: "A partir de", value: service.startingPrice }, { label: "Prazo típico", value: service.typicalTimeline }, { label: "Garantia", value: service.guarantee }, ].filter((item): item is { label: string; value: string } => Boolean(item.value), ); if (offer.length === 0) return null; return (

Investimento e prazo

{offer.map((item) => (
{item.label}
{item.value}
))}
); }