import { useCallback } from "react";
import { useFeature } from "../featureFlags";
export function useModularDrawerVisibility({ modularDrawerFeatureFlagKey, }) {
    const featureModularDrawer = useFeature(modularDrawerFeatureFlagKey);
    const isModularDrawerVisible = useCallback((location) => {
        if (!featureModularDrawer?.enabled)
            return false;
        return featureModularDrawer.params?.[location] ?? false;
    }, [featureModularDrawer]);
    return {
        isModularDrawerVisible,
    };
}
//# sourceMappingURL=useModularDrawerVisibility.js.map