Files
TheGame/packages/web/components/Player/Section/PlayerHeroTile.tsx
2021-10-29 21:16:28 -06:00

19 lines
405 B
TypeScript

import { Box, HStack, Text } from '@metafam/ds';
import React from 'react';
type Props = {
title: string;
children: React.ReactNode;
};
export const PlayerHeroTile: React.FC<Props> = ({ children, title }) => (
<Box width="full">
<Text fontSize="md" color="blueLight" mb={1}>
{title}
</Text>
<HStack alignItems="baseline" fontSize="lg">
{children}
</HStack>
</Box>
);