quivr/frontend/lib/hooks/useToast.ts

11 lines
228 B
TypeScript
Raw Normal View History

2023-06-14 16:00:05 +03:00
import { ToastContext } from "@/lib/components/ui/Toast/domain/ToastContext";
import { useContext } from "react";
export const useToast = () => {
const { publish } = useContext(ToastContext);
return {
publish,
};
};