import ReactMarkdown from 'react-markdown' import { Link } from 'react-router-dom' type Props = { body: string } export default ({ body }: Props) => ( (['/', '.'].some (e => href?.startsWith (e)) ? {children} : {children})) }}> {body} )