import{a as d}from"./chunk-4IDT4R5V.mjs";import{a as m}from"./chunk-4DWGD4TS.mjs";import{a as s}from"./chunk-RCHZJCKQ.mjs";import{Box as N}from"@mui/material";import{useFragment as _}from"react-relay";import{jsx as p}from"react/jsx-runtime";function v(t,i){return h(t)||I(t,i)||A(t,i)||b()}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(t,i){if(t){if(typeof t=="string")return y(t,i);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,i):void 0}}function y(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,e=Array(i);r<i;r++)e[r]=t[r];return e}function I(t,i){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var e,c,n,a,f=[],o=!0,u=!1;try{if(n=(r=r.call(t)).next,i===0){if(Object(r)!==r)return;o=!1}else for(;!(o=(e=n.call(r)).done)&&(f.push(e.value),f.length!==i);o=!0);}catch(l){u=!0,c=l}finally{try{if(!o&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw c}}return f}}function h(t){if(Array.isArray(t))return t}var g=function(i){var r=i.notification,e=i.NotificationItemRenderer,c=e===void 0?d:e,n=_(s,r),a=m(),f=v(a,1),o=f[0],u=function(){n.unread&&o({variables:{input:{read:!0,notificationIds:[n.id]}}})};return p(N,{onClick:u,sx:{cursor:"pointer"},children:p(c,{notification:n})})},S=g;export{S as a};
//# sourceMappingURL=chunk-CUJVYQDW.mjs.map