2024-11-28 13:35:18 -06:00
|
|
|
---
|
2025-04-03 12:45:33 -05:00
|
|
|
import { AstroSeo } from '@astrolib/seo';
|
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-04-03 12:45:33 -05:00
|
|
|
<AstroSeo
|
|
|
|
|
title={toolStrings.name}
|
|
|
|
|
description={toolStrings.seo_description}
|
|
|
|
|
canonical={Astro.url.href}
|
|
|
|
|
openGraph={{
|
|
|
|
|
url: Astro.url.href,
|
|
|
|
|
images: [{ url: imgur(tool.image) }],
|
|
|
|
|
title: toolStrings.name,
|
|
|
|
|
description: toolStrings.seo_description,
|
|
|
|
|
site_name: 'BlitzKit',
|
|
|
|
|
}}
|
|
|
|
|
twitter={{ cardType: 'summary_large_image' }}
|
|
|
|
|
/>
|