'use strict';
import { jsx } from 'react/jsx-runtime';
import { useRef } from 'react';
import { SaveCompleteContext } from './save-complete-context.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
function SaveCompleteProvider({
  children
}) {
  const saveComplete = useRef(0);
  const notifySaveComplete = /* @__PURE__ */__name(() => saveComplete.current += 1, "notifySaveComplete");
  const saveCompleteContextValue = {
    notifySaveComplete
  };
  return /* @__PURE__ */jsx(SaveCompleteContext.Provider, {
    value: saveCompleteContextValue,
    children
  });
}
__name(SaveCompleteProvider, "SaveCompleteProvider");

export { SaveCompleteProvider };
