import{r,j as e}from"./index-vDL8KyrI.js";const o=r.memo(s=>{const{type:i,label:a,detail:l,onChange:t,...c}=s;return e.jsxs("fieldset",{className:"fieldset",children:[a&&e.jsx("legend",{className:"fieldset-legend",children:a}),l?e.jsxs("label",{className:"label",children:[e.jsx("input",{className:`checkbox${s.required?" validator":""}`,type:"checkbox",onChange:t,...c}),l]}):e.jsx("input",{className:`checkbox${s.required?" validator":""}`,type:"checkbox",onChange:t,...c})]})});export{o as C};
