import { jsx as _jsx } from "react/jsx-runtime";
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
import { selectSettings } from "../../../../model/store/config/configSelectors.js";
import { selectCanManageAnalyticalDashboard } from "../../../../model/store/permissions/permissionsSelectors.js";
import { LockedStatusIndicator } from "./LockedStatusIndicator.js";
/**
 * @alpha
 */
export function DefaultLockedStatus(props) {
    const settings = useDashboardSelector(selectSettings);
    const canManageAnalyticalDashboard = useDashboardSelector(selectCanManageAnalyticalDashboard);
    if (!settings["enableNewAnalyticalDashboardsNavigation"] || !canManageAnalyticalDashboard) {
        return null;
    }
    return _jsx(LockedStatusIndicator, { ...props });
}
