import React , { ReactNode } from 'react' ; import { MARKS } from '@contentful/rich-text-types' ; import { RenderMark } from '@contentful/rich-text-react-renderer' ; export const defaultRenderMark = { [ MARKS . BOLD ] : ( text ) => < strong > { text } < /strong>, [ MARKS . ITALIC ] : ( text ) => < em > { text } < /em>, [ MARKS . UNDERLINE ] : ( text ) => ( < span style = { { textDecoration : 'underline' } } > { text } < /span>), } ;