author BounceCode, Inc.
 *  packageDocumentation import { useCallback } from 'react' ; import { useSnackbar } from 'notistack' ; import { FormikValues , FormikHelpers } from 'formik' ; function useResetPasswordSubmitCallback ( ) { const { enqueueSnackbar } = useSnackbar ( ) ; return useCallback ( async ( values , formikHelpers ) => { try { enqueueSnackbar ( '이메일을 확인해주세요.' , { variant : 'success' } ) ; } catch ( e ) { console . error ( e ) ; enqueueSnackbar ( e . message , { variant : 'error' } ) ; } } , [ ] ) ; } export default useResetPasswordSubmitCallback ;