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