mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-11 06:24:56 -05:00
* Bump eslint-plugin-import from 2.22.1 to 2.23.2 Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.22.1 to 2.23.2. - [Release notes](https://github.com/benmosher/eslint-plugin-import/releases) - [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md) - [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.22.1...v2.23.2) Signed-off-by: dependabot[bot] <support@github.com> * fixed eslint-plugin-import update Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dan13ram <dan13ram@gmail.com>
70 lines
1.9 KiB
TypeScript
70 lines
1.9 KiB
TypeScript
import { IconButton, Wrap, WrapItem } from '@metafam/ds';
|
|
import { GuildFragmentFragment } from 'graphql/autogen/types';
|
|
import React from 'react';
|
|
import { FaDiscord, FaGithub, FaGlobe, FaTwitter } from 'react-icons/fa';
|
|
|
|
import { ProfileSection } from '../ProfileSection';
|
|
|
|
type Props = {
|
|
guild: GuildFragmentFragment;
|
|
};
|
|
|
|
export const GuildLinks: React.FC<Props> = ({ guild }) => (
|
|
<ProfileSection title="Links">
|
|
<Wrap>
|
|
{guild.website_url ? (
|
|
<WrapItem>
|
|
<a href={guild.website_url} target="_blank" rel="noreferrer">
|
|
<IconButton
|
|
variant="outline"
|
|
aria-label="Discord Server"
|
|
size="lg"
|
|
colorScheme="blackAlpha"
|
|
icon={<FaGlobe />}
|
|
/>
|
|
</a>
|
|
</WrapItem>
|
|
) : null}
|
|
{guild.discord_invite_url ? (
|
|
<WrapItem>
|
|
<a href={guild.discord_invite_url} target="_blank" rel="noreferrer">
|
|
<IconButton
|
|
variant="outline"
|
|
aria-label="Discord Server"
|
|
size="lg"
|
|
bgColor="discord"
|
|
icon={<FaDiscord />}
|
|
/>
|
|
</a>
|
|
</WrapItem>
|
|
) : null}
|
|
{guild.github_url ? (
|
|
<WrapItem>
|
|
<a href={guild.github_url} target="_blank" rel="noreferrer">
|
|
<IconButton
|
|
variant="outline"
|
|
aria-label="Github"
|
|
size="lg"
|
|
colorScheme="github"
|
|
icon={<FaGithub />}
|
|
/>
|
|
</a>
|
|
</WrapItem>
|
|
) : null}
|
|
{guild.twitter_url ? (
|
|
<WrapItem>
|
|
<a href={guild.twitter_url} target="_blank" rel="noreferrer">
|
|
<IconButton
|
|
variant="outline"
|
|
aria-label="Twitter"
|
|
size="lg"
|
|
colorScheme="twitter"
|
|
icon={<FaTwitter />}
|
|
/>
|
|
</a>
|
|
</WrapItem>
|
|
) : null}
|
|
</Wrap>
|
|
</ProfileSection>
|
|
);
|