import { useContext } from "react" ; import { SnackbarContext } from "../core/contexts/SnackbarContext" ; category export type SnackbarMessageType = "success" | "info" | "warning" | "error" ; category export interface SnackbarController { /**
     * Is there currently an open snackbar
     */ isOpen : boolean ; /**
     * Close the currently open snackbar
     */ close : ( ) => void ; /**
     * Display a new snackbar. You need to specify the type and message.
     * You can optionally specify a title
     */ open : ( props : { type : SnackbarMessageType ; title ? : string ; message : string ; } ) => void ; } see SnackbarController category export const useSnackbarController = ( ) => useContext < SnackbarController > ( SnackbarContext ) ;