I am here today to ask you : how do you retrieve all sites on your tenant by using Pnp (formerly known as pnp-js) ? Or even using CSOM.
I am trying to create a webpart where, in the PropertyPane, the user will be able to search and select the sites on which (s)he wants to search something.
Do you have any idea on how to achieve that ? Because I can't find anything on how to retrieve all sites on a tenant, neither all sites attached to a specific hub.
And yes, I am trying to reproduce Highlighted Content WP Property Pane...See below (translation : first dropdown:"Select sites", search bar : "Search your site by its title", then "0 selected site", and "Frequently used sites", and then a list of my sites on my tenant)
Thanks a lot for your help !