import{j as t}from"./jsx-runtime.D_zvdyIk.js";import{u as s}from"./useIsMounted.BP-0-XYC.js";import{I as a}from"./iconify.pctX9hd_.js";import{c as o}from"./utils.BZbvJs_N.js";import{u as i}from"./index.RTTH55m1.js";import{u as m,a as c,o as u}from"./announcement.BEAU5c3r.js";import{A as p}from"./index.BbbUxuaI.js";import{m as l}from"./proxy.D9st1TsE.js";import"./index.BIRwh3HZ.js";import"./_commonjsHelpers.CqkleIqs.js";import"./site.Deo0TYgJ.js";import"./index.BHh4vvK5.js";import"./index.3whys8t3.js";function C(){const n=s(),e=i(m),r=i(c);return!n||r.length===0?null:t.jsxs("button",{type:"button",onClick:u,"aria-expanded":!1,"aria-haspopup":"dialog",className:o("relative flex items-center gap-1.5 opacity-75 transition-opacity duration-300 hover:opacity-100","text-muted-foreground text-sm"),title:"View announcements",children:[t.jsx(a,{icon:"ri:notification-3-line",className:"h-4 w-4"}),t.jsx("span",{children:"Announcements"}),t.jsx(p,{children:n&&e>0&&t.jsx(l.span,{initial:{scale:0},animate:{scale:1},exit:{scale:0},className:o("absolute -top-1 -right-2","flex items-center justify-center","h-4 min-w-[1rem] px-1","bg-destructive text-destructive-foreground","rounded-full font-medium text-xs"),children:e>9?"9+":e})})]})}export{C as default};
