import { createContext, useContext } from "react";

import { DialogContextProps } from "../model/DialogProps";

export const context = createContext<DialogContextProps>({
	push: () => {},
	back: () => {},
	close: () => {},
});

export function useDialogContext() {
	return useContext(context);
}
