import { ENTERPRISE_PAGE_ITEM_TYPE, HUB_PAGE_ITEM_TYPE, } from "../../pages/defaults";
import { HUB_SITE_ITEM_TYPE } from "../../sites/defaults";
import { ENTERPRISE_SITE_ITEM_TYPE } from "../../sites/HubSites";
/**
 * Given a MatchableType, return the corresponding item type
 * if the type is specific enough. Otherwise, return null.
 * @param type
 * @param isPortal
 * @returns
 */
export function getItemTypeFromMatchableType(type, isPortal) {
    switch (type) {
        case "project":
            return "Hub Project";
        case "initiative":
            return "Hub Initiative";
        case "site":
            return isPortal ? ENTERPRISE_SITE_ITEM_TYPE : HUB_SITE_ITEM_TYPE;
        case "page":
            return isPortal ? ENTERPRISE_PAGE_ITEM_TYPE : HUB_PAGE_ITEM_TYPE;
        case "content":
            return null; // content can be any type
    }
}
//# sourceMappingURL=getItemTypeFromMatchableType.js.map