import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import React from"react";import Switch from"react-switch";import"./CtrlBoolean.scss";export default function CtrlBoolean({currMod:e,updatePath:c,prop:a,value:t,inheritVal:r,deleteProp:o,updateProps:l}){return _jsxs(React.Fragment,{children:[!1!==a.clearable&&null!=t&&!r&&_jsx("div",{className:"ctrl-boolean__clear-btn",onClick:()=>o(c),children:"Clear"}),_jsx(Switch,{className:"ctrl-boolean__switch "+(r?"ctrl-boolean__switch--inherit-val":""),onColor:"#6CA7EE",uncheckedIcon:_jsx("span",{className:"ctrl-boolean__switch__icon--unchecked",children:"No"}),checkedIcon:_jsx("span",{className:"ctrl-boolean__switch__icon--checked",children:"Yes"}),height:21,width:52,handleDiameter:19,checked:!!t,onChange:a=>l(e.id,c,a)})]},e.id+c)}