feat: add some stuff
This commit is contained in:
@ -4,12 +4,11 @@ import { Image as AstroImage } from "astro:assets";
|
||||
interface Props {
|
||||
src: ImageMetadata;
|
||||
alt: string;
|
||||
caption?: string;
|
||||
maxWidth?: number;
|
||||
}
|
||||
|
||||
const { src, alt, maxWidth } = Astro.props;
|
||||
|
||||
const image = typeof src === "string" ? await import(src) : src;
|
||||
const { src: image, alt, maxWidth } = Astro.props;
|
||||
|
||||
const sizes = [
|
||||
{
|
||||
|
Reference in New Issue
Block a user