Vercel/src/photo/PhotoGridPage.tsx
2025-04-04 18:09:47 -05:00

25 lines
669 B
TypeScript

import { ComponentProps } from 'react';
import PhotoGridPageClient from './PhotoGridPageClient';
import {
htmlHasBrParagraphBreaks,
safelyParseFormattedHtml,
} from '@/utility/html';
import { PAGE_ABOUT } from '@/app/config';
export default function PhotoGridPage(
props: ComponentProps<typeof PhotoGridPageClient>,
) {
const aboutTextSafelyParsedHtml = PAGE_ABOUT
? safelyParseFormattedHtml(PAGE_ABOUT)
: undefined;
const aboutTextHasBrParagraphBreaks = PAGE_ABOUT
? htmlHasBrParagraphBreaks(PAGE_ABOUT)
: false;
return <PhotoGridPageClient {...{
...props,
aboutTextSafelyParsedHtml,
aboutTextHasBrParagraphBreaks,
}} />;
}