import { siteConfig } from "@/data/site-config"; interface BreadcrumbItem { label: string; href?: string; } interface PageTitleBannerProps { /** Page title — "About us", "Services", "Contacts" */ title: string; /** Breadcrumb trail */ breadcrumbs: BreadcrumbItem[]; } /** * PageTitleBanner — shared inner-page hero banner. * * Used by: About, Services, Contacts pages. * * Structure (from reference): * - Full-width rounded card with gradient background * - Centered "/ Title /" text * - Breadcrumbs bottom-left * - Decorative "tenext" outline text right side * - Top-left and bottom-right rounded corner decorations */ export function PageTitleBanner({ title, breadcrumbs }: PageTitleBannerProps) { const breadcrumbJsonLd = { "@context": "https://schema.org", "@type": "BreadcrumbList", itemListElement: breadcrumbs.map((crumb, index) => ({ "@type": "ListItem", position: index + 1, name: crumb.label, ...(crumb.href ? { item: `${siteConfig.url}${crumb.href}` } : {}), })), }; return (