Files
blitzkit/src/app/tools/tankopedia/[id]/components/HistorySection.tsx
T

16 lines
458 B
TypeScript
Raw Normal View History

2024-06-12 13:08:52 -05:00
import { Heading, Text } from '@radix-ui/themes';
import PageWrapper from '../../../../../components/PageWrapper';
import { useDuel } from '../../../../../stores/duel';
export function HistorySection() {
const tank = useDuel((state) => state.protagonist!.tank);
if (!tank.description) return null;
return (
<PageWrapper noFlex1>
<Heading>History of the {tank.name}</Heading>
<Text>{tank.description}</Text>
</PageWrapper>
);
}