plane/lib/hooks/useToast.tsx
2022-11-19 19:51:26 +05:30

12 lines
228 B
TypeScript

import { useContext } from "react";
import { toastContext } from "contexts/toast.context";
const useToast = () => {
const toastContextData = useContext(toastContext);
return toastContextData;
};
export default useToast;