quivr/frontend/lib/hooks/useToast.ts
2023-05-27 12:22:19 +02:00

11 lines
232 B
TypeScript

import { useContext } from "react";
import { ToastContext } from "../../app/components/ui/Toast/domain/ToastContext";
export const useToast = () => {
const { publish } = useContext(ToastContext);
return {
publish,
};
};