group posts

This commit is contained in:
Виталий Лавшонок
2025-11-16 00:03:07 +03:00
parent 56b6f9b339
commit b949837e13
9 changed files with 937 additions and 643 deletions

View File

@@ -0,0 +1,34 @@
import { toast } from 'react-toastify';
export const toastSuccess = (mes: string, autoClose: number = 3000) => {
toast.success(mes, {
position: 'top-right',
autoClose: autoClose,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
});
};
export const toastWarning = (mes: string, autoClose: number = 3000) => {
toast.warning(mes, {
position: 'top-right',
autoClose: autoClose,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
});
};
export const toastError = (mes: string, autoClose: number = 3000) => {
toast.error(mes, {
position: 'top-right',
autoClose: autoClose,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
});
};