// src/components/ImageCarousel.js import React from 'react'; import clsx from 'clsx'; import styles from './ImageCarousel.module.css'; export default function ImageCarousel({ images }) { const [current, setCurrent] = React.useState(0); if (!images || images.length === 0) return null; return (
{images.map((img, idx) => (
{img.alt {img.caption &&
{img.caption}
}
))}
{images.map((img, idx) => ( ))}
); }