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 SharedObjectLockControl({ isLocked, isLockingSupported, onLockChange, }) {
    const labels = useComponentLabelsContext();
    return (_jsx(SharedObjectCheckboxControl, { isChecked: isLocked, isSupported: isLockingSupported, onChange: onLockChange, label: labels.accessTypeLabel, name: "shared-dialog-lock", className: "s-shared-object-lock" }));
}
