Provider Props

IntelligemsProviderProps

export type ActiveCurrency = string | (() => string);
export type PriceFormat = "dollars" | "cents";
export type PriceFormatter = (value: number, currencyCode?: string) => string;

export type IntelligemsProviderProps = {
  children?: React.ReactNode;
  organizationId: string;
  activeCurrencyCode: ActiveCurrency;
  storefrontApiToken: string;
  debug?: boolean;
  priceFormat?: PriceFormat;
  antiFlicker?: boolean;
  config?: PluginConfigType;
  cacheIntervalMinutes?: number;
  noShadowRoot?: boolean;
};

Last updated