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