import { HiOutlineInformationCircle, HiOutlineCheckCircle, HiOutlineExclamation, HiOutlineShieldExclamation, } from 'react-icons/hi'; import { Flex } from '../Flex'; import { Heading } from '../Heading'; import { Text } from '../Text'; import { Type, Container } from './styles'; type AlertProps = { type: Type; title: string; text?: string; }; export function Alert({ type, title, text }: AlertProps): JSX.Element { return ( {type === 'info' && } {type === 'success' && } {type === 'warning' && } {type === 'danger' && } {title} {text && {text}} ); }