import { PageContext } from '@microsoft/sp-page-context' ; param { PageContext } pageContext export function isHubSite ( { legacyPageContext : { siteId , hubSiteId } } ) { return siteId . indexOf ( hubSiteId ) !== - 1 ; }