import { Image } from 'astro:assets'
export interface Props {
title: string
description: string
image: string
imageAlt: string
}
const { title, description, image, imageAlt } = Astro.props as Props
<div class="container">
<div class="grid grid-cols-4 gap-16 px-5 border-b-2 border-b-gold-font pb-10">
<div class="py-10">
<h2
class="text-center text-4xl uppercase max-w-2xl mx-auto leading-snug text-gold-font mb-10"
>
{title}
</h2>
<div class="grid grid-cols-1 desktop:grid-cols-2 gap-10 px-5">
<p>
{description}
</p>
<Image
src={image}
alt={imageAlt}
class="rounded-lg"
/>
</div>
</div>
</div>
</div>
I have this component and I get ts(2322) error "Type '{ src: string; alt: string; class: string; }' is not assignable to type 'IntrinsicAttributes & Props'"