import { FunctionComponent } from 'react' import { CheckCircleIcon, ExclamationCircleIcon, ExclamationIcon, InformationCircleIcon, } from '@heroicons/react/solid' interface InlineNotificationProps { desc?: string title?: string type: 'error' | 'info' | 'success' | 'warning' } const InlineNotification: FunctionComponent = ({ desc, title, type, }) => (
{type === 'error' ? ( ) : null} {type === 'success' ? ( ) : null} {type === 'warning' ? ( ) : null} {type === 'info' ? ( ) : null}
{title}
{desc}
) export default InlineNotification