2024-11-28 13:35:18 -06:00
|
|
|
---
|
|
|
|
|
import { imgur } from '@blitzkit/core';
|
|
|
|
|
import { type Tool } from '../constants/tools';
|
2025-01-07 13:20:20 -06:00
|
|
|
import { getStrings } from '../core/i18n/getStrings';
|
2024-11-28 13:35:18 -06:00
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
tool: Tool;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const { tool } = Astro.props;
|
2025-01-07 13:20:20 -06:00
|
|
|
const { locale } = Astro.params;
|
|
|
|
|
const strings = getStrings(locale);
|
|
|
|
|
const toolStrings =
|
2025-01-10 20:30:08 -06:00
|
|
|
strings.website.tools[
|
|
|
|
|
(tool.stringsId ?? tool.id) as keyof typeof strings.website.tools
|
|
|
|
|
];
|
2024-11-28 13:35:18 -06:00
|
|
|
---
|
|
|
|
|
|
2025-01-07 13:20:20 -06:00
|
|
|
<title>{toolStrings.name}</title>
|
2024-11-28 13:35:18 -06:00
|
|
|
<meta property="og:image" content={imgur(tool.image)} />
|
2025-01-07 13:20:20 -06:00
|
|
|
<meta name="description" content={toolStrings.seo_description} />
|
|
|
|
|
<meta property="og:description" content={toolStrings.seo_description} />
|