import { HubTeamType , HubProduct } from "../types" ; import { getTeamsAvailableInProduct } from "./get-teams-available-in-product" ; param { string } team param { string } product param { string } portalApiVersion export function getTeamTemplate ( type , product , portalApiVersion ) { return getTeamsAvailableInProduct ( product , portalApiVersion ) . find ( t => { return t . config . type === type ; } ) ; }