plane/space/hooks/use-toast.tsx
2024-03-19 20:08:35 +05:30

10 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;