// Module ID: 10652 // Function ID: 10653 // Name: useShowBadgeProgress // Dependencies: [6007, 1074, 504, 10648, 2] // Exports: default // Module 10652 (useShowBadgeProgress) import initialize from "initialize" /* 504 */; import BadgeUtils from "BadgeUtils" /* 10648 */; import ConsentStore from "ConsentStore" /* 6007 */; require = fn; const Consents = fn(1074).Consents; const size = fn(2); const result = size.fileFinishedImporting("modules/badges/useShowBadgeProgress.tsx"); export default function useShowBadgeProgress(arg0) { ({ badge, viewerBadge, isViewingOtherUser } = arg0); const items = [ConsentStore]; const stateFromStores = initialize.useStateFromStores(items, () => ConsentStore.hasConsented(constants.PERSONALIZATION)); if (viewerBadge == null) { viewerBadge = badge; } const tmpResult = BadgeUtils; const tmp4 = null != BadgeUtils.findTier(viewerBadge, viewerBadge.next_tier); const tmpResult2 = BadgeUtils; let owned = !isViewingOtherUser; if (!isViewingOtherUser) { owned = viewerBadge.owned; } if (owned) { owned = tmp4; } if (owned) { owned = !tmp5; } return owned; };