import { useContext } from "@lynx-js/react";
import { ButtonContext } from "@lynx-js/lynx-ui-button";
import { clsx } from "clsx";
import { CheckboxContext } from "./CheckboxContext.jsx";
const CheckboxIndicator = (props)=>{
    const { children, className, style, forceMount = false } = props;
    const { checked, indeterminate } = useContext(CheckboxContext);
    const { active, disabled } = useContext(ButtonContext);
    return <view style={style} className={clsx(className, {
        'ui-indeterminate': indeterminate,
        'ui-checked': checked,
        'ui-active': active,
        'ui-disabled': disabled
    })}>
      {(forceMount || checked || indeterminate) && children}
    </view>;
};
export { CheckboxIndicator };

//# sourceMappingURL=CheckboxIndicator.jsx.map