import { jsx as _jsx } from "react/jsx-runtime";
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
import { selectSupportsAccessControlCapability } from "../../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
import { selectCanManageAnalyticalDashboard } from "../../../../model/store/permissions/permissionsSelectors.js";
import { ShareStatusIndicator } from "./ShareStatusIndicator.js";
/**
 * @alpha
 */
export function DefaultShareStatus(props) {
    const supportsAccessControl = useDashboardSelector(selectSupportsAccessControlCapability);
    const canManageAnalyticalDashboard = useDashboardSelector(selectCanManageAnalyticalDashboard);
    if (!supportsAccessControl || !canManageAnalyticalDashboard) {
        return null;
    }
    return _jsx(ShareStatusIndicator, { ...props });
}
//# sourceMappingURL=DefaultShareStatus.js.map