@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
15 lines • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getApyAppearance = void 0;
/**
* Determines the APY indicator appearance based on user's region.
* UK users see grey APY indicator, non-UK users see green (success).
*
* @param region - The user's region code (e.g., "GB", "US", "FR")
* @returns The appearance value for the APY Tag component
*/
const getApyAppearance = (region) => {
return region === "GB" ? "gray" : "success";
};
exports.getApyAppearance = getApyAppearance;
//# sourceMappingURL=getApyAppearance.js.map