'use client'

// src/notification/ServiceIdProvider.tsx
import React, { createContext, useMemo } from "react";
import { jsx } from "react/jsx-runtime";
var ServiceIdContext = createContext(
  void 0
);
var ServiceIdProvider = ({
  serviceId,
  children
}) => {
  const state = useMemo(() => ({ serviceId }), [serviceId]);
  return /* @__PURE__ */ jsx(ServiceIdContext.Provider, { value: state, children });
};
var useServiceId = () => {
  const context = React.useContext(ServiceIdContext);
  if (context === void 0) {
    throw new Error("useServiceId must be used within a ServiceIdProvider");
  }
  return context.serviceId;
};

export {
  ServiceIdProvider,
  useServiceId
};
//# sourceMappingURL=chunk-LDSJ6KYP.mjs.map