"use client";

// src/components/ui/key-metrics-context.tsx
import * as React from "react";
import { jsx } from "react/jsx-runtime";
var KeyMetricsContext = React.createContext({});
function useKeyMetricsContext() {
  return React.useContext(KeyMetricsContext);
}
function KeyMetricsProvider({
  value,
  children
}) {
  const memo = React.useMemo(
    () => ({
      defaultInsightAction: value.defaultInsightAction,
      shortcutHint: value.shortcutHint,
      defaultActionLabel: value.defaultActionLabel
    }),
    [value.defaultInsightAction, value.shortcutHint, value.defaultActionLabel]
  );
  return /* @__PURE__ */ jsx(KeyMetricsContext.Provider, { value: memo, children });
}
export {
  KeyMetricsProvider,
  useKeyMetricsContext
};
//# sourceMappingURL=key-metrics-context.js.map