import { notification } from 'antd';

export const openNotificationWithIcon = (type: any, data: any): any => {
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
  // @ts-ignore
  notification[type]({
    message: data.message,
    description: data.description ? data.description : null,
  });
};
