Files
blitzkit/packages/website/src/pages/tools/embed/[embed]/index.astro
T

19 lines
603 B
Plaintext
Raw Normal View History

2024-10-26 14:33:04 -05:00
---
import type { GetStaticPaths } from 'astro';
2024-10-27 22:40:44 -05:00
import { capitalize } from 'lodash-es';
2024-10-26 19:46:35 -05:00
import { embedConfigurations } from '../../../../constants/embeds';
2024-10-26 14:33:04 -05:00
import BaseLayout from '../../../../layouts/BaseLayout.astro';
import { Page } from './_index';
export const getStaticPaths = (() => {
2024-10-26 19:46:35 -05:00
return Object.keys(embedConfigurations).map((embed) => ({
params: { embed: embed as keyof typeof embedConfigurations },
2024-10-26 14:33:04 -05:00
}));
}) satisfies GetStaticPaths;
---
2024-10-27 22:40:44 -05:00
<title>BlitzKit - {capitalize(Astro.params.embed)} embed</title>
2024-10-26 14:33:04 -05:00
<BaseLayout>
<Page client:load embed={Astro.params.embed} />
</BaseLayout>