feat: nation filters

This commit is contained in:
TrèsAbhi committed 2023-12-04 19:10:26 -06:00
1 parent 7bde92c7f1
commit cadc84b32f
5 files changed
+122 -32

No files matched your search

+10
View File
@@ -98,3 +98,13 @@ export const TIER_ROMAN_NUMERALS: Record<Tier, string> = {
9: 'IX',
10: 'X',
};
export const NATIONS = tanks.then((tanks) => {
const nationsObject: Record<string, true> = {};
tanks.forEach(({ nation }) => {
nationsObject[nation] = true;
});
return Object.keys(nationsObject);
});