import Markdown from 'react-markdown' // Markdown wrapper to suppress creation of P tags const Md = ({ children }) => props.children }}>{children} const renderEvent = evt => Array.isArray(evt) ? {evt[0]} : typeof evt === 'object' ? JSON.stringify(evt, null, 2) : {evt} const EventGroup = ({ type='info', events=[] }) => events.length > 0 ? (

{type}

{events.map((evt, i) => ( ))}
# Message
{i} {renderEvent(evt)}
) : null const order = [ 'error', 'warning', 'info', 'debug' ] const Events = props => props?.draft?.events ? (
{order.map(type => )}
) : null export default Events