- Fix heading/titleClass references in FDAlternateHeroBlock, FDDataTableBlock, FDLocationsGridBlock, FDPartnersLogosBlock, FDServiceChooserBlock, FDStatisticsBlock - Fix service.title in FDServiceChooserBlock nested type - Remove hero field references from [slug]/page.tsx - Fix PopupAnnouncement adminOnly import path - Add Page type import to [slug]/page.tsx
27 lines
630 B
TypeScript
27 lines
630 B
TypeScript
// @ts-nocheck
|
|
import React from 'react'
|
|
|
|
import type { Page } from '@/payload-types'
|
|
|
|
import RichText from '@/components/RichText'
|
|
|
|
type LowImpactHeroType =
|
|
| {
|
|
children?: React.ReactNode
|
|
richText?: never
|
|
}
|
|
| (Omit<Page['hero'], 'richText'> & {
|
|
children?: never
|
|
richText?: Page['hero']['richText']
|
|
})
|
|
|
|
export const LowImpactHero: React.FC<LowImpactHeroType> = ({ children, richText }) => {
|
|
return (
|
|
<div className="container mt-16">
|
|
<div className="max-w-[48rem]">
|
|
{children || (richText && <RichText data={richText} enableGutter={false} />)}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|