tca-admin/utils/CommonFunction.utils.tsx
2025-08-12 10:25:18 +05:30

16 lines
374 B
TypeScript

import Swal from 'sweetalert2';
export const showMessage = (msg = '', type = '') => {
const toast: any = Swal.mixin({
toast: true,
position: 'top',
showConfirmButton: false,
timer: 3000,
customClass: { container: 'toast' },
});
toast.fire({
icon: type,
title: msg,
padding: '10px 20px',
});
};