import type { ReactNode } from 'react';
import Glow from '@/components/site/glow';
import Icon from '@/components/site/icon';
import Pill from '@/components/site/pill';
import Section from '@/components/site/section';
import { company } from '@/data/site';
type CtaBannerProps = {
badge: string;
title: string;
description: string;
/** Usually one primary and one secondary . */
actions: ReactNode;
showContacts?: boolean;
};
/** Centered call-to-action card used to close informational pages. */
export default function CtaBanner({
badge,
title,
description,
actions,
showContacts = true,
}: CtaBannerProps) {
const contacts = [
{ icon: 'call', label: company.phone.label },
{ icon: 'mail', label: company.email.busdev },
{ icon: 'location_on', label: 'Bintaro & Plaza Simatupang, Jakarta' },
];
return (
}
>
{badge}
{actions}
{showContacts && (
{contacts.map((contact) => (
{contact.label}
))}
)}
);
}