2024-06-12 13:08:52 -05:00
|
|
|
import { Heading, Text } from '@radix-ui/themes';
|
2024-09-22 22:04:03 -05:00
|
|
|
import { Duel } from '../../stores/duel';
|
|
|
|
|
import { PageWrapper } from '../PageWrapper';
|
2024-06-12 13:08:52 -05:00
|
|
|
|
|
|
|
|
export function HistorySection() {
|
2024-07-10 13:11:09 -05:00
|
|
|
const tank = Duel.use((state) => state.protagonist.tank);
|
2024-06-12 13:08:52 -05:00
|
|
|
|
|
|
|
|
if (!tank.description) return null;
|
|
|
|
|
|
|
|
|
|
return (
|
2024-10-09 19:40:55 -05:00
|
|
|
<PageWrapper noFlex1 align="center" noMinHeight>
|
2024-06-12 13:08:52 -05:00
|
|
|
<Heading>History of the {tank.name}</Heading>
|
|
|
|
|
<Text>{tank.description}</Text>
|
|
|
|
|
</PageWrapper>
|
|
|
|
|
);
|
|
|
|
|
}
|