({
isSubDomainRouting,
path,
communityName,
communityType,
}: {
isSubDomainRouting: boolean;
path: string;
communityName: string;
communityType: 'discord' | 'slack' | 'linen';
})
| 5 | }; |
| 6 | |
| 7 | export function CustomLinkHelper({ |
| 8 | isSubDomainRouting, |
| 9 | path, |
| 10 | communityName, |
| 11 | communityType, |
| 12 | }: { |
| 13 | isSubDomainRouting: boolean; |
| 14 | path: string; |
| 15 | communityName: string; |
| 16 | communityType: 'discord' | 'slack' | 'linen'; |
| 17 | }) { |
| 18 | if (isSubDomainRouting) { |
| 19 | return path; |
| 20 | } else { |
| 21 | return `/${communityMapping[communityType]}/${communityName}${path}`; |
| 22 | } |
| 23 | } |
no outgoing calls
no test coverage detected