2025-03-04 23:02:26 -06:00
|
|
|
---
|
2025-03-05 11:52:39 -06:00
|
|
|
import { LinkI18n } from '../../../components/LinkI18n';
|
2025-03-04 23:02:26 -06:00
|
|
|
import { PageWrapper } from '../../../components/PageWrapper';
|
|
|
|
|
import { tanksTool } from '../../../constants/tools';
|
|
|
|
|
import { awaitableTanks } from '../../../core/awaitables/tanks';
|
|
|
|
|
import ToolLayout from '../../../layouts/ToolLayout.astro';
|
|
|
|
|
|
|
|
|
|
export { getStaticPaths } from '../index.astro';
|
|
|
|
|
|
2025-03-05 11:52:39 -06:00
|
|
|
const locale = Astro.params.locale;
|
|
|
|
|
|
2025-03-04 23:02:26 -06:00
|
|
|
const tanks = await awaitableTanks;
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<ToolLayout tool={tanksTool}>
|
|
|
|
|
<PageWrapper>
|
|
|
|
|
{
|
|
|
|
|
tanks.tanks.map((tank) => (
|
2025-03-05 11:52:39 -06:00
|
|
|
<LinkI18n {locale} href={`/tanks/${tank.slug}`}>
|
|
|
|
|
{tank.slug} ({tank.id})
|
|
|
|
|
</LinkI18n>
|
2025-03-04 23:02:26 -06:00
|
|
|
))
|
|
|
|
|
}
|
|
|
|
|
</PageWrapper>
|
|
|
|
|
</ToolLayout>
|