Trigger Invite modal

Hi all,

I added an icon in the navigation like below:
image

Is there an easy way to trigger the “Invite” modal on the share icon?

Thx!

F.