"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useModularDrawerConfiguration = void 0;
const featureFlags_1 = require("../../featureFlags");
const assetConfigurationDisabled = {
    rightElement: "undefined",
    leftElement: "undefined",
    filter: "undefined",
};
const networkConfigurationDisabled = {
    rightElement: "undefined",
    leftElement: "undefined",
};
const useModularDrawerConfiguration = (featureFlagKey, drawerConfiguration) => {
    const featureModularDrawer = (0, featureFlags_1.useFeature)(featureFlagKey);
    const modularizationEnabled = featureModularDrawer?.params?.enableModularization ?? false;
    const assetsConfiguration = modularizationEnabled
        ? drawerConfiguration?.assets
        : assetConfigurationDisabled;
    const networkConfiguration = modularizationEnabled
        ? drawerConfiguration?.networks
        : networkConfigurationDisabled;
    return {
        assetsConfiguration,
        networkConfiguration,
    };
};
exports.useModularDrawerConfiguration = useModularDrawerConfiguration;
//# sourceMappingURL=useModularDrawerConfiguration.js.map