plane/web/hooks/use-toast.tsx
sriram veeraghanta 3ce0aa8ebc restructring
2023-08-22 13:00:23 +05:30

10 lines
226 B
TypeScript

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