UNPKG

@artsy/cohesion

Version:
38 lines (34 loc) 801 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tappedTabBar = void 0; var _Schema = require("../../Schema"); /** * A user taps an icon in the Tab Bar within the iOS app * * badge is true if present, false if not * * tab describes the icon tapped by the user * * @example * ``` * tappedTabBar({ * badge: true, * tab: "sell" * }) * ``` */ var tappedTabBar = function tappedTabBar(_ref) { var badge = _ref.badge, tab = _ref.tab, contextScreenOwnerType = _ref.contextScreenOwnerType; return { action: _Schema.ActionType.tappedTabBar, badge: badge || false, context_module: _Schema.ContextModule.tabBar, context_screen_owner_type: contextScreenOwnerType, tab: tab }; }; exports.tappedTabBar = tappedTabBar;