plane/space/hooks/use-toast.tsx

10 lines
228 B
TypeScript
Raw Normal View History

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