import{a as f}from"./chunk-E7WAJD3M.mjs";import{a}from"./chunk-GO4IDWUK.mjs";import{a as s}from"./chunk-Q4QPMMXW.mjs";import{Suspense as g}from"react";import{Badge as h}from"@baseapp-frontend/design-system/components/native/badges";import{BellIcon as p}from"@baseapp-frontend/design-system/components/native/icons";import{View as j}from"@baseapp-frontend/design-system/components/native/views";import{useFragment as O,useLazyLoadQuery as P}from"react-relay";import{jsx as n,jsxs as w}from"react/jsx-runtime";function c(t){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,i)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(i){b(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function b(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=v(t,"string");return c(e)=="symbol"?e:e+""}function v(t,e){if(c(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(c(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var S=function(e){var r=e.isActive,i=r===void 0?!1:r,u=P(a,{},{fetchPolicy:"store-and-network"}),m=u.me,o=O(f,m);return s(o?.id),w(j,{children:[n(p,{width:"24",height:"24",isActive:i}),!!(o!=null&&o.notificationsUnreadCount)&&n(h,{children:o.notificationsUnreadCount>99?"99+":o.notificationsUnreadCount})]})},B=function(e){var r=e.isActive;return n(g,{fallback:n(p,{width:"24",height:"24",isActive:r}),children:n(S,y({},e))})},W=B;export{W as a};
//# sourceMappingURL=chunk-WJZS6SFO.mjs.map