import { withCurrencySymbol } from "../../../regional/decorators" import type { RegionalLogic, RegionConfig } from "../../../regional/types" import { baseFormatAmount, baseValidateAmount } from "../default/logic" /** * US logic factory — USD symbol, no tax label (tax shown separately at checkout). * Result: baseFormatAmount(99) → "99" → "$99" */ export const createLogic = (_config: RegionConfig): RegionalLogic => ({ formatAmount: withCurrencySymbol("$")(baseFormatAmount), validateAmount: (n) => baseValidateAmount(n), })