Files
website-astro-stefanimhoff.de/src/components/ProductLink.astro
2024-09-11 17:02:02 +02:00

22 lines
365 B
Plaintext

---
// Cspell:words astro
import TextLink from './TextLink.astro';
export interface Props {
asin: string;
class?: string;
text: string;
[key: string]: any;
}
const { asin, class: className, text, ...props } = Astro.props;
---
<TextLink
class:list={['product', className]}
href={`https://www.amazon.de/gp/product/${asin}`}
{...props}
>
{text}
</TextLink>