23 lines
360 B
Plaintext
23 lines
360 B
Plaintext
---
|
|
import type { ImageMetadata } from "astro";
|
|
import { Image } from "astro:assets";
|
|
|
|
interface Props {
|
|
priority?: boolean;
|
|
size?: number;
|
|
src: ImageMetadata;
|
|
}
|
|
|
|
const { priority = true, size = 24, src } = Astro.props;
|
|
---
|
|
|
|
<Image
|
|
alt=""
|
|
height={size}
|
|
width={size}
|
|
{priority}
|
|
{src}
|
|
role="presentation"
|
|
class="brightness-1000 grayscale"
|
|
/>
|