mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-14 08:58:02 -05:00
* wc/wagmi/viem * replace * profile * replace context (,: * testing, clean up * wallet connect deploy * connect * remove type slive * podcast * podcast * heck yeah * feat: connect button * chore * trying siwe, network switch * redirect * prettying, cleaning up SIWE endpoints, & passing linting 🕊 * switching minting to Optimism & converting `ethers` to `wagmi` for contract access 🥧 * simplified onboarding & successfully minted ⛲ * typo * api key --------- Co-authored-by: Udit Takkar <udit222001@gmail.com> Co-authored-by: dysbulic <dys@dhappy.org>
24 lines
530 B
TypeScript
24 lines
530 B
TypeScript
import { Box, BoxProps, HStack, Text } from '@metafam/ds';
|
|
|
|
type Props = {
|
|
title: string;
|
|
// shim b/c I'm getting an error I don't understand
|
|
// when specifying `align` as an attribute
|
|
align?: string;
|
|
};
|
|
|
|
export const PlayerHeroTile: React.FC<Props & BoxProps> = ({
|
|
children,
|
|
title,
|
|
...props
|
|
}) => (
|
|
<Box w="full" {...props}>
|
|
<Text fontSize="md" color="blueLight" mb={1} whiteSpace="nowrap">
|
|
{title}
|
|
</Text>
|
|
<HStack alignItems="baseline" fontSize="lg">
|
|
{children}
|
|
</HStack>
|
|
</Box>
|
|
);
|