import type { RegionalRegistry } from "../../../regional/types" import { addons } from "./addons" import { DefaultPricingWidget } from "./components" import { regionConfig } from "./config" import { baseFormatAmount, baseValidateAmount } from "./logic" // The default registry is the root — it cannot use createRegistry() because // it has no base to extend from. All other region index files extend this one. /** * Default regional registry. * Named export for spreading in other regions: import { defaultRegistry } from "../default" * Default export for @regional alias consumers: import registry from "@regional" */ export const defaultRegistry: RegionalRegistry = { config: regionConfig, components: { PricingWidget: DefaultPricingWidget, }, forms: { OrderForm: {}, // no overrides — all default widgets used }, logic: { formatAmount: baseFormatAmount, validateAmount: baseValidateAmount, }, addons, } export default defaultRegistry