18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
|
|
type DealImagesProps = {
|
|
imageUrl: string
|
|
alt?: string
|
|
}
|
|
|
|
export default function DealImages({ imageUrl, alt }: DealImagesProps) {
|
|
return (
|
|
<div className="w-full bg-surface rounded-lg overflow-hidden shadow-sm">
|
|
<img
|
|
src={imageUrl}
|
|
alt={alt ?? "deal image"}
|
|
className="w-full h-auto object-cover"
|
|
/>
|
|
</div>
|
|
)
|
|
}
|