"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useVaultStrategyType = void 0;
var utils_1 = require("../../utils");
var react_1 = require("react");
var vaults_1 = require("../../vaults");
var useVaultStrategyType = function (chain, vaultAddress) {
    return (0, react_1.useMemo)(function () {
        var id = ((0, utils_1.getDeploymentByAddr)(chain, vaultAddress) || {}).id;
        var type = (0, vaults_1.getInfoFromName)(id).type;
        var strategyType = type;
        return { strategyType: strategyType };
    }, [chain, vaultAddress]);
};
exports.useVaultStrategyType = useVaultStrategyType;
//# sourceMappingURL=useVaultStrategyType.js.map