mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
10 lines
226 B
TypeScript
10 lines
226 B
TypeScript
|
import { useContext } from "react";
|
||
|
import { toastContext } from "contexts/toast.context";
|
||
|
|
||
|
const useToast = () => {
|
||
|
const toastContextData = useContext(toastContext);
|
||
|
return toastContextData;
|
||
|
};
|
||
|
|
||
|
export default useToast;
|