var n=Object.defineProperty;var i=(e)=>e;function d(e,o){this[e]=i.bind(null,o)}var a=(e,o)=>{for(var t in o)n(e,t,{get:o[t],enumerable:!0,configurable:!0,set:d.bind(o,t)})};var l=(e,o)=>()=>(e&&(o=e(e=0)),o);import{jsx as r}from"react/jsx-runtime";function u({locale:e,onChange:o}){return r("div",{className:"inline-flex rounded-full border border-border bg-card p-1 font-semibold text-muted-foreground text-xs",children:["EN","FR"].map((t)=>r("button",{type:"button",className:`rounded-full px-3 py-1 transition ${e===t?"bg-violet-500 text-white":"hover:text-foreground"}`,onClick:()=>o(t),children:t==="EN"?"English":"Français"},t))})}export{u as LanguageSwitcher};
