import{n as e}from"./useStore-CusP06SD.js";import{a as t}from"./dist-DhH_lYkz.js";import{i as n}from"./index-DinSQfHc.js";import{r}from"./form-context-B-ekdUc0.js";import{t as i}from"./switch-D4S9As9u.js";var a=e(),o=({className:e,label:o})=>{let s=r();return(0,a.jsxs)(`div`,{className:t(`form-field__switch flex items-center`,e),children:[(0,a.jsx)(n,{htmlFor:s.name,className:`mr-3`,children:o}),(0,a.jsx)(i,{id:s.name,checked:s.state.value,onCheckedChange:s.handleChange})]})};export{o as default};