"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SyncTargetRegistry_1 = require("../../../SyncTargetRegistry");
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
const shouldShowMissingPasswordWarning = (syncTargetId, settings) => {
    const syncTargetClass = SyncTargetRegistry_1.default.classById(syncTargetId);
    return syncTargetClass.requiresPassword() && !settings[`sync.${syncTargetId}.password`];
};
exports.default = shouldShowMissingPasswordWarning;
//# sourceMappingURL=shouldShowMissingPasswordWarning.js.map