import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{O as t,mt as n,z as r}from"./antd-NNbrPHoG.js";import{M as i}from"./antd-icons-BW4cpGcx.js";import{t as a}from"./i18n-BuHCC44e.js";import{i as o,r as s}from"./i18n-BEvBfIF0.js";import{t as c}from"./react-vendor-nIJYBVRh.js";var l=e(n(),1),u=c();function d(){let{t:e,i18n:n}=a();return(0,u.jsx)(t,{menu:{items:(0,l.useMemo)(()=>[{key:`en`,label:e(`language.en`),onClick:()=>void o(`en`)},{key:`zh`,label:e(`language.zh`),onClick:()=>void o(`zh`)},{key:`zh-tw`,label:e(`language.zhTw`),onClick:()=>void o(`zh-tw`)},{key:`ja`,label:e(`language.ja`),onClick:()=>void o(`ja`)}],[e]),selectedKeys:[s(n.resolvedLanguage??n.language)]},placement:`bottomRight`,trigger:[`click`],children:(0,u.jsx)(r,{type:`text`,size:`small`,className:`app-header-lang-btn`,icon:(0,u.jsx)(i,{}),"aria-label":e(`language.label`)})})}export{d as t};