mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
22 lines
365 B
Plaintext
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>
|