import FeatureCard from '@/components/site/feature-card'; import { common } from '@/content/common'; import { useContent } from '@/hooks/use-locale'; type ServiceGridProps = { /** `summary` for overviews, `description` for the official wording. */ detail?: 'summary' | 'description'; }; /** The eight official PAJ services as a 4-column card grid. */ export default function ServiceGrid({ detail = 'summary' }: ServiceGridProps) { const t = useContent(common); return (
{t.services.map((service, index) => { const number = String(index + 1).padStart(2, '0'); return ( {service.expansion && ( {service.expansion}:{' '} )} {service[detail]} } footer={service.outcome} /> ); })}
); }