import * as React from 'react'; export type FlashMessageType = 'success' | 'info' | 'warning' | 'error'; interface Props { title?: string; children: string; type?: FlashMessageType; } export default ({ title, children, type }: Props) => (
{title && {title}} {children}
);