import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import"./CtrlColor.scss";import React from"react";import ColorPicker from"../../components/ColorPicker/ColorPicker";export default function CtrlColor({currMod:r,updatePath:o,prop:e,value:l,inheritVal:c,deleteProp:t,updateProps:a}){return _jsxs(React.Fragment,{children:[!1!==e.clearable&&l&&!c&&_jsx("div",{className:"ctrl-color__clear-btn",onClick:()=>t(o),children:"Clear"}),_jsx(ColorPicker,{className:"ctrl-color__color-picker",inheritVal:c,color:l,onChange:e=>a(r.id,o,e)})]},r.id+o)}