import Success from '@lunit/design-system-icons/Success16';
import Error from '@lunit/design-system-icons/Error16';
import Warning from '@lunit/design-system-icons/Warning16';
import Information from '@lunit/design-system-icons/Information16';
import Close from '@lunit/design-system-icons/Close';
import React, { forwardRef } from 'react';
import {
StyledAlert,
StyledAlertTitle,
StyledAlertChildren,
StyledBottomAction,
} from './Alert.styled';
import { AlertProps } from './Alert.types';
import Button from '../Button';
const MAPPED_ICON = {
success: ,
info: ,
warning: ,
error: ,
};
const Alert = forwardRef((props, ref) => {
const { title, severity, children, bottomAction, onClose, ...rest } = props;
return (
(
} onClick={onClose} />
),
}}
onClose={onClose}
{...rest}
>
{title && {title}}
{children}
{bottomAction && {bottomAction}}
);
});
export default Alert;