plane/apps/app/lib/hooks/useToast.tsx

12 lines
228 B
TypeScript
Raw 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;