mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-17 03:19:59 +03:00
11 lines
232 B
TypeScript
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,
|
|
};
|
|
};
|