-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathLinkCards.tsx
56 lines (55 loc) · 1.45 KB
/
LinkCards.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React from 'react';
import LinkCard from '@/components/LinkCard';
import { Columns } from '@/components/Columns';
import * as links from '../../constants/links';
import linkCardData from '@/data/link-cards-data';
import {
IconGithub,
IconDiscord,
IconAmplify,
IconLearn
} from '@/components/Icons';
interface LinkCardsProps {
platform: string;
}
const LinkCards: React.FC<LinkCardsProps> = ({ platform }) => {
const linkCardPlatformData = linkCardData[platform];
return (
<Columns columns={4} gap="small">
{linkCardPlatformData ? (
<LinkCard
isExternal={true}
href={linkCardPlatformData.github}
icon={() => <IconGithub fontSize="2rem" />}
>
{linkCardPlatformData.githubContent}
</LinkCard>
) : null}
<LinkCard
isExternal={true}
href={links.DISCORD}
rel={'noopener'}
icon={() => <IconDiscord fontSize="2rem" />}
>
Amplify Discord
</LinkCard>
{linkCardPlatformData ? (
<LinkCard
isExternal={true}
href={linkCardPlatformData.roadmap}
icon={() => <IconAmplify fontSize="2rem" />}
>
What's next for Amplify
</LinkCard>
) : null}
<LinkCard
isExternal={true}
href={links.LEARN}
icon={() => <IconLearn fontSize="2rem" />}
>
Amplify Learn
</LinkCard>
</Columns>
);
};
export default LinkCards;