import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2021-2025 GoodData Corporation
import { useComponentLabelsContext } from "./ComponentLabelsContext.js";
import { SharedObjectCheckboxControl } from "./SharedObjectCheckboxControl.js";
/**
 * @internal
 */
export function SharedObjectUnderLenientControl({ isUnderLenientControl, isLeniencyControlSupported, onUnderLenientControlChange, }) {
    const labels = useComponentLabelsContext();
    return (_jsx(SharedObjectCheckboxControl, { isChecked: isUnderLenientControl, isSupported: isLeniencyControlSupported, onChange: onUnderLenientControlChange, label: labels.accessRegimeLabel, name: "shared-accessRegimeLabel-control", className: "s-shared-object-under-lenient-control" }));
}
