({
isSubDomainRouting,
communityName,
communityType,
}: {
isSubDomainRouting: boolean;
communityName: string;
communityType: 'discord' | 'slack' | 'linen';
})
| 2 | import { CustomLinkHelper } from '@linen/utilities/custom-link'; |
| 3 | |
| 4 | export default function CustomRouterPush({ |
| 5 | isSubDomainRouting, |
| 6 | communityName, |
| 7 | communityType, |
| 8 | }: { |
| 9 | isSubDomainRouting: boolean; |
| 10 | communityName: string; |
| 11 | communityType: 'discord' | 'slack' | 'linen'; |
| 12 | }) { |
| 13 | return ({ path }: { path: string }) => { |
| 14 | Router.push( |
| 15 | CustomLinkHelper({ |
| 16 | communityType, |
| 17 | communityName, |
| 18 | isSubDomainRouting, |
| 19 | path, |
| 20 | }) |
| 21 | ); |
| 22 | }; |
| 23 | } |
no test coverage detected