diff --git a/src/useSnackbar.js b/src/useSnackbar.js index 96cf94c8..8e34ba83 100644 --- a/src/useSnackbar.js +++ b/src/useSnackbar.js @@ -1,11 +1,4 @@ import { useContext } from 'react'; import SnackbarContext from './SnackbarContext'; -export default () => { - const { enqueueSnackbar, closeSnackbar } = useContext(SnackbarContext); - - return { - enqueueSnackbar, - closeSnackbar, - }; -}; +export default () => useContext(SnackbarContext);