"use client"; import Image from "next/image"; import { useState } from "react"; import type { StrapiMedia } from "@afterlife/shared"; interface ScreenshotGalleryProps { screenshots: StrapiMedia[]; } export function ScreenshotGallery({ screenshots }: ScreenshotGalleryProps) { const [selected, setSelected] = useState(0); if (screenshots.length === 0) return null; return (
{screenshots[selected].alternativeText
{screenshots.length > 1 && (
{screenshots.map((ss, i) => ( ))}
)}
); }