import{d as o,k as d,j as t,m as r}from"./app-vYFZLebK.js";const s=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],b=o("code-xml",s);const c=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],m=o("monitor",c);const h=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],l=o("moon",h);const k=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],y=o("sun",k);function p(){const{theme:a,setTheme:i}=d(),n=[{id:"light",icon:y,label:"Light"},{id:"dark",icon:l,label:"Dark"},{id:"auto",icon:m,label:"Auto"}];return t.jsx("div",{className:"flex items-center bg-[var(--bg-elevated)] p-1 rounded-lg border border-[var(--border)] shadow-inner",children:n.map(e=>t.jsxs("button",{onClick:()=>i(e.id),className:`relative p-2 rounded flex items-center gap-2 transition-all ${a===e.id?"text-cyan-500":"text-[var(--text-muted)] hover:text-[var(--text-main)]"}`,title:e.label,children:[a===e.id&&t.jsx(r.div,{layoutId:"activeTheme",className:"absolute inset-0 bg-white dark:bg-white/5 rounded shadow-sm border border-black/5 dark:border-white/10",transition:{type:"spring",bounce:.2,duration:.6}}),t.jsx(e.icon,{size:14,className:"relative z-10"})]},e.id))})}export{b as C,p as T};
