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

Function JoinButton

apps/web/ui/JoinButton/index.tsx:16–37  ·  view source on GitHub ↗
({ status }: WrapperProps)

Source from the content-addressed store, hash-verified

14}
15
16export default function JoinButton({ status }: WrapperProps) {
17 const fn = ({ brandColor, fontColor, currentCommunity, settings }: Props) => {
18 if (status === 'loading') {
19 return <div />;
20 }
21
22 return settings.communityType === 'discord' ? (
23 <JoinDiscord
24 brandColor={brandColor}
25 fontColor={fontColor}
26 href={settings.communityInviteUrl}
27 />
28 ) : (
29 <JoinSlack
30 brandColor={brandColor}
31 fontColor={fontColor}
32 href={settings.communityInviteUrl}
33 />
34 );
35 };
36 return fn;
37}

Callers 1

PageLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected