import { observer } from 'mobx-react' import Markdown from 'markdown-it' import React from 'react' const md = new Markdown({ html: true }) export interface RunnablesErrorModel { title: string link?: string | null callout?: string | null message: string } interface RunnablesErrorProps { error: RunnablesErrorModel } export const RunnablesError = observer(({ error }: RunnablesErrorProps) => (

{error.title} {error.link && }

{error.callout &&
{error.callout}
}
))