function [mapName, relativePathToMapFile, found] = getBlockHelpMapNameAndPath(block_type)
%  Returns the mapName and the relative path to the maps file for this block_type

%  Internal note:
%   This function is currently used only for finding the appropriate
%   license-specific map file for the shared webscope Eye Diagram block.

%   Copyright 2019-2023 The MathWorks, Inc.

if strcmp(block_type, 'EyeDiagramBlock')
    found = true;
    mapName = 'eye_diagram_webscope';
    if ~isempty(ver('comm')) && builtin('license','test','Communication_Toolbox')
        relativePathToMapFile = '/comm/comm.map';
    elseif ~isempty(ver('serdes')) && builtin('license','test','SerDes_Toolbox')
        relativePathToMapFile = '/serdes/helptargets.map';
    elseif ~isempty(ver('msblks')) && builtin('license','test','Mixed_Signal_Blockset')
        relativePathToMapFile = '/msblks/helptargets.map';
    else
        relativePathToMapFile = '/comm/comm.map';
    end
else
    mapName = 'User Defined';
    relativePathToMapFile = '/comm/comm.map';
    found = false;
end