MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / onShare

Function onShare

apps/web/ui/ChannelView/index.tsx:772–785  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}>

Callers

nothing calls this directly

Calls 2

copyToClipboardFunction · 0.90
successMethod · 0.80

Tested by

no test coverage detected