mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
19 lines
405 B
TypeScript
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>
|
|
);
|