import { HubProduct } from "../types" ; interface ITeamPropMap { content : string ; core : string ; followers ? : string ; } param { string } product export function getTeamPropertiesMapForProduct ( product ) { const map = { content : "contentGroupId" , core : "collaborationGroupId" } ; if ( product === "premium" ) { map . followers = "followersGroupId" ; } return map ; }