mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-08 21:15:05 -05:00
22 lines
491 B
TypeScript
22 lines
491 B
TypeScript
import { Box, Text } from '@metafam/ds';
|
|
import React from 'react';
|
|
|
|
type Props = { title: string; value?: string | null | undefined };
|
|
|
|
export const PlayerFeature: React.FC<Props> = ({ title, value, children }) => (
|
|
<Box>
|
|
<Text
|
|
fontFamily="body"
|
|
fontSize="sm"
|
|
color="blueLight"
|
|
textTransform="uppercase"
|
|
mb="2"
|
|
>
|
|
{title}
|
|
</Text>
|
|
<Text fontFamily="body" fontSize="md" fontWeight="bold">
|
|
{value || children}
|
|
</Text>
|
|
</Box>
|
|
);
|