()
| 770 | } |
| 771 | |
| 772 | function onShare() { |
| 773 | const url = |
| 774 | process.env.NODE_ENV === 'development' |
| 775 | ? 'http://localhost:3000' |
| 776 | : 'https://www.linen.dev'; |
| 777 | copyToClipboard( |
| 778 | `${url}/invite/${ |
| 779 | currentCommunity.slackDomain || |
| 780 | currentCommunity.discordDomain || |
| 781 | currentCommunity.discordServerId |
| 782 | }` |
| 783 | ); |
| 784 | Toast.success('Copied to clipboard'); |
| 785 | } |
| 786 | |
| 787 | return ( |
| 788 | <ChannelContext.Provider value={currentChannel}> |
nothing calls this directly
no test coverage detected