import { notification, message } from 'antd' import * as Icons from 'components/Icons' export const notify = { fatal: (...res) => { notification.error({ message: 'Fatal Error', icon: , description: res, placement: 'bottomLeft' }) }, expire: (...res) => { notification.error({ message: 'Hey ', icon: , description: res, placement: 'bottomLeft', }) }, info: (...res) => { notification.info({ message: 'Well', description: res.toString(), placement: 'bottomLeft', }) }, exception: (...res) => { notification.error({ message: 'WoW!', description: res.toString(), placement: 'bottomLeft', }) }, warn: (...res) => { notification.warn({ message: 'Hey!', description: res.toString(), placement: 'bottomLeft', }) }, success: (...res) => { notification.success({ message: 'Well', description: res.toString(), placement: 'bottomLeft', }) }, error: (...res) => { notification.error({ message: 'Wopss', description: (
An wild error appear! :

{res.toString()}
), placement: 'bottomLeft', }) }, proccess: (...res) => { notification.open({ icon: , message: 'Please wait', description:
{res}
, placement: 'bottomLeft', }) }, open: (props) => { notification.open({ placement: props.placement? props.placement : 'bottomLeft', duration: props.duration? props.placement : 15, icon: props.icon? props.icon : , message: props.message? props.message : '', description: props.description? props.description : '' }) }, }