import React from 'react'; import { GalleryItem } from '../types'; import { PhotoIcon, VideoCameraIcon } from './icons'; // Assuming these exist or will be added interface GalleryComponentProps { items: GalleryItem[] | undefined; title?: string; } const GalleryComponent: React.FC = ({ items, title }) => { if (!items || items.length === 0) { return null; } return (
{title && (

{title}

)}
{items.map((item) => (
{item.type === 'image' ? ( {item.altText ) : item.type === 'video' ? (
{item.caption && (

{item.caption}

)} {/* Icon overlay for type indication, optional */}
{item.type === 'image' ? : }
))}
); }; export default GalleryComponent;