All files / components/toast toast.template.js

0% Statements 0/17
0% Branches 0/4
0% Functions 0/2
0% Lines 0/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                                     
import React from 'react'
import PropTypes from 'prop-types'
import ToastTemplateStyled from './toast.template.styled'
 
import { ToastIcons } from 'icons'
 
const ToastTemplate = ({ type, title, description, side }) => (
  <ToastTemplateStyled className={type} type={type} side={side}>
    <div className='toast-icon-type-container'>
      <ToastIcons type={type} />
    </div>
    <div className='toast-message-container'>
      <h2>{title}</h2>
      <p>{description}</p>
    </div>
  </ToastTemplateStyled>
)
 
ToastTemplate.propTypes = {
  type: PropTypes.string,
  title: PropTypes.string,
  description: PropTypes.string,
  side: PropTypes.string
}
 
export default ToastTemplate