feat: tankopedia list

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
TrèsAbhiandCopilot committed 2026-04-26 18:19:09 -05:00
1 parent bc0004574a
commit 2bae132d18
7 files changed
+61 -14

No files matched your search

@@ -23,7 +23,7 @@
}
.icon {
width: 11rem;
width: var(--tank-card-width);
height: 7rem;
position: relative;
@@ -1,4 +1,3 @@
import type { PopularTank } from "@protos/blitzkit/popular_tanks";
import { api } from "../../core/api/dynamic";
import { useAwait } from "../../hooks/useAwait";
import { useGameStrings } from "../../hooks/useGameStrings";
@@ -7,7 +6,12 @@ import { LinkI18n } from "../LinkI18n";
import { Text } from "../Text";
import styles from "./index.module.css";
export function TankCard({ id }: PopularTank) {
interface TankCardProps {
id: string;
subtitle?: string;
}
export function TankCard({ id }: TankCardProps) {
const tank = useAwait(() => api.tank(id), `tank-${id}`);
const gameStrings = useGameStrings("TankEntity");
const locale = useLocale();