I have a business problem where site admins have setup Highlighted content webpart in various parts of the site to display documents based on a selected managed property (query rules in HCWebpart). So far so good. The reason for this is because doc libs have been setup with segregated permissions for a chunk of users who would be uploading/editing etc. but are looking to rollup docs from these libraries for another set of end users based on these highlighted content webparts for viewing purposes.
The issue is that site admins now want to provide a feature for these end users so they can "favorite" or "follow" a document from within these highlighted content webpart. I realize that this needs to be custom and I'm not a full developer. So far this is what I found: https://github.com/pnp/sp-dev-fx-extensions/tree/main/samples/react-command-follow-document
However this feature would only be available if each doc lib were exposed as a library webpart.
How can I modify the HCWebpart so that it exposes a similar functionality....or really any idea on how to tackle these two problems together? We still need the rollup of docs based on managed column + need to create a favorites feature