import { isEmpty } from 'lodash' import React from 'react' export default function Alert({ type = '', children }) { if (type === null) { return '' } if (type === 'error') { return (
{children}
) } if (type === 'success') { return (
{children}
) } return (
{children}
) }