diff --git a/client/src/common/helpers/toastManager.jsx b/client/src/common/helpers/toastManager.jsx new file mode 100644 index 000000000..3d6e417db --- /dev/null +++ b/client/src/common/helpers/toastManager.jsx @@ -0,0 +1,16 @@ +import { createStandaloneToast } from '@chakra-ui/react'; + +const toast = createStandaloneToast(); +// const customToast = createStandaloneToast({ theme: yourCustomTheme }) + +// error toast +export const showErrorToast = (title, description) => { + toast({ + title: title, + description: description, + position: 'top-left', + variant: 'subtle', + status: 'error', + isClosable: true, + }); +};