I believe the copy/button that exists today already does a "share" feature, depending on your browser/platform. It may just copy on desktop, but on mobile, I believe it prompts the native "share" experience, which you can then use to share to X, etc.