https://www.sharepointgems.com/2020/02/access-ms-teams-teams-in-spfx-web-part/
Access MS TEAMS (Teams) in SPFX Web part