I'm developing a custom Teams tab (using typescript, react, and sharepoint web parts) which can be added to any channel page (alongside Posts, Files...).
The ideal scenario would be that the user first selects an item in the Files section (eg. a folder), then opens the custom tab, and in there I can know what the selected item is.
Can I somehow achieve this ?
Thanks.