"use client";
import { createContext, forwardRef } from "react";
const defaultValue = {
  isProvided: false,
  // eslint-disable-next-line react/display-name
  clientLink: forwardRef(() => {
    throw new Error("GDSContext.clientLink is not set. You must wrap your app in a <GDSProvider> component.");
  }),
  useRouter: () => null
};
const GDSContext = globalThis.__gds_ctx || (globalThis.__gds_ctx = createContext(defaultValue));
GDSContext.defaultValue = defaultValue;
export {
  GDSContext
};
