import React from 'react' import InfoIcon from './icons/InfoIcon' import SuccessIcon from './icons/SuccessIcon' import ErrorIcon from './icons/ErrorIcon' import CloseIcon from './icons/CloseIcon' const alertStyle: React.CSSProperties = { backgroundColor: '#151515', color: 'white', padding: '10px', textTransform: 'uppercase', borderRadius: '3px', display: 'flex', justifyContent: 'space-between', alignItems: 'center', boxShadow: '0px 2px 2px 2px rgba(0, 0, 0, 0.03)', fontFamily: 'Arial', width: '300px', boxSizing: 'border-box' } const buttonStyle = { marginLeft: '20px', border: 'none', backgroundColor: 'transparent', cursor: 'pointer', color: '#FFFFFF' } interface AlertTemplateProps { message: string options: any style: React.CSSProperties close: () => void } const AlertTemplate = ({ message, options, style, close }: AlertTemplateProps) => { return (
{options.type === 'info' && } {options.type === 'success' && } {options.type === 'error' && } {message}
) } export default AlertTemplate