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

16 lines
457 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';
2024-07-09 20:35:36 -05:00
import * as Duel from '../../../../../stores/duel';
2024-06-12 13:08:52 -05:00
export function HistorySection() {
2024-07-09 20:35:36 -05:00
const tank = Duel.use((state) => state.protagonist!.tank);
2024-06-12 13:08:52 -05:00
if (!tank.description) return null;
return (
<PageWrapper noFlex1>
<Heading>History of the {tank.name}</Heading>
<Text>{tank.description}</Text>
</PageWrapper>
);
}