import { CustomSnackbar } from '../components' ; import { useSnackbar } from '../context' ; const CrossScreen = ( ) => { const { snackbarData } = useSnackbar ( ) ; return ( < > < CustomSnackbar { ... snackbarData } / > < />); } ; export default CrossScreen ;