> = ({
heading,
resultsCount,
headingPostscript,
headingLevel: HeadingLevel = 'h1',
headingClassName,
children,
className,
...props
}) => (
{heading}
{resultsCount !== undefined && (
/* Not sure why fragments and keys are needed, but otherwise gets the
React key warnings messages and children are rendered as array... */
{' '}
{formatLargeNumber(resultsCount)} result
{resultsCount === 1 ? '' : 's'}{' '}
)}
{headingPostscript}
{children}
);
export default PageIntro;