plane/apps/app/hooks/use-toast.tsx

10 lines
226 B
TypeScript
Raw Permalink Normal View History

2022-11-19 14:21:26 +00:00
import { useContext } from "react";
import { toastContext } from "contexts/toast.context";
const useToast = () => {
const toastContextData = useContext(toastContext);
return toastContextData;
};
export default useToast;