import{r as e}from"./markdown-Biq8ujIZ.js";import{n as t}from"./createLucideIcon-dIT_VeEb.js";var n=e();function r({checked:e,onChange:r,label:i}){return(0,n.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":e,"aria-label":i,onClick:()=>r(!e),className:t(`inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full p-0.5 transition-colors`,e?`bg-brand-600`:`bg-border`),children:(0,n.jsx)(`span`,{className:t(`h-5 w-5 rounded-full bg-white shadow transition-transform duration-200 ease-out`,e?`translate-x-5`:`translate-x-0`)})})}export{r as t};