import { ContentTree } from '@financial-times/content-tree' import React from 'react' import { ContentProps } from '../../types' import { ContentLayout } from '../../ContentLayout' interface InNumbersProps extends ContentProps {} const Definition: React.FC> = ({ content: { term, description }, }) => { return (
{term}
{description}
) } /* * @description InNumbers component is used to render a list of numbers with a title. * @param content.title - Optional heading for the numbers section. * @param children - Rendered Definition components (passed by RichText). */ const InNumbers: React.FC> = ({ content, children, }) => { const { title } = content return (
{title && (

{title}

)}
{children}
) } export default InNumbers export { Definition }