Files
TheGame/packages/web/components/Player/Section/PlayerCollab.tsx
Hammad Jutt 74c154eba9 Refactor PlayerPage and remove mock components
renamed / cleaned up a bunch of stuff and removed things that dont work in the profile
2020-12-20 17:00:38 -07:00

40 lines
1.2 KiB
TypeScript

import { Box, Divider, HStack, Text } from '@metafam/ds';
import { PlayerFragmentFragment } from 'graphql/autogen/types';
import React from 'react';
import { FaClock, FaGlobe } from 'react-icons/fa';
type Props = { player: PlayerFragmentFragment };
export const PlayerCollab: React.FC<Props> = ({ player }) => {
return (
<HStack
spacing={6}
divider={
<Divider height="3rem" color="purpleTag" orientation="vertical" />
}
>
<Box>
<Text fontSize="xs" color="blueLight" casing="uppercase" mb={3}>
Location
</Text>
<HStack alignItems="baseline">
<FaGlobe color="blueLight" />
<Text fontSize="lg" fontFamily="mono" mb="1">
{player.box_profile?.location || '-'}
</Text>
</HStack>
</Box>
<Box>
<Text fontSize="xs" color="blueLight" casing="uppercase" mb={3}>
Availability
</Text>
<HStack alignItems="baseline">
<FaClock color="blueLight" />
<Text fontSize="lg" fontFamily="mono" mb="1">
{player.availability_hours || '0'}h/week
</Text>
</HStack>
</Box>
</HStack>
);
};