import { createContext, useContext } from 'react';

// src/organization/context/OrganizationContext.tsx
var OrganizationContext = createContext(null);
function useOrganization() {
  const ctx = useContext(OrganizationContext);
  if (!ctx) {
    throw new Error(
      "useOrganization must be used within an OrganizationProvider. Wrap your app (or the relevant subtree) with <OrganizationProvider>."
    );
  }
  return ctx;
}

export { OrganizationContext, useOrganization };
