Reuse share dialog like shareWithList in own app


I need to implement a sharing in my new app.
I would like to not start from scratch and reuse exisiting like the one in files
I will need to connect to my own share-logic as I am not based on files.
But is there any reusability here? Like the contact drop-down or so?

the filling of the dropdown is going via this API

For the frontend, you might want to have a look at our vue multiselect component: We have a predefined user layout there that should help you to wire up a sharing dialog pretty easily.

thanks for the hint
unfortunately not working with VUE.
I will figure out. Calendar has a simpler implementation…