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

@@ -0,0 +1,29 @@
import { TankCard } from "../../../components/TankCard";
import { TankCards } from "../../../components/TankCards";
import { api } from "../../../core/api/dynamic";
import { useAwait } from "../../../hooks/useAwait";
import { LocaleProvider } from "../../../hooks/useLocale";
interface PageProps {
locale: string;
}
export function Page({ locale, ...props }: PageProps) {
return (
<LocaleProvider locale={locale}>
<Content {...props} />
</LocaleProvider>
);
}
function Content() {
const tankList = useAwait(() => api.tankList(), "tank-list");
return (
<TankCards>
{tankList.list.map(({ id }) => (
<TankCard key={id} id={id} />
))}
</TankCards>
);
}