import { motion } from 'framer-motion'; import PropTypes from 'prop-types'; import { clsm } from '../../utils'; import { NOTIF_TYPES } from '../../contexts/Notification'; const InlineNotification = ({ animationProps, className, Icon, message, type }) => (
{Icon && ( )}

{message}

); InlineNotification.propTypes = { animationProps: PropTypes.object.isRequired, className: PropTypes.string, Icon: PropTypes.elementType, message: PropTypes.string.isRequired, type: PropTypes.oneOf(Object.values(NOTIF_TYPES)).isRequired }; InlineNotification.defaultProps = { className: '', Icon: null }; export default InlineNotification;