feat: super duper secret map

This commit is contained in:
TrèsAbhi committed 2024-04-19 09:26:53 -05:00
1 parent dd88d42884
commit 23d8c54366
2 files changed
+26

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { Flex, Link } from '@radix-ui/themes';
import { use } from 'react';
import PageWrapper from '../../../../components/PageWrapper';
import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions';
export default function Page() {
const awaitedTankDefinitions = use(tankDefinitions);
return (
<PageWrapper>
<Flex direction="column" align="center">
{Object.values(awaitedTankDefinitions)
.sort((a, b) => b.tier - a.tier)
.map((tank) => (
<Link href={`./${tank.id}`}>{tank.name}</Link>
))}
</Flex>
</PageWrapper>
);
}