import { NullOr } from "@shared/utilities";
import { createContext } from "react";
import { UnsavedChangesNotifierProps } from "./useUnsavedChangesNotifier";

export interface IUnsavedWarnContextState {
  show: (options: NullOr<UnsavedChangesNotifierProps>) => void;
}

export const UnsavedWarnContext = createContext<NullOr<IUnsavedWarnContextState>>(null);
