'use client'; import { IconButton } from '@/ui/IconButton'; import { Image } from '@/ui/Image'; import { Modal } from '@/ui/Modal'; import { Text } from '@/ui/Text'; import { ChevronLeft, ChevronRight, Download } from 'lucide-react'; import React from 'react'; export interface MediaViewerModalProps { isOpen: boolean; onClose: () => void; src?: string; alt?: string; title?: string; onNext?: () => void; onPrev?: () => void; } export function MediaViewerModal({ isOpen, onClose, src, alt = 'Media viewer', title, onNext, onPrev, }: MediaViewerModalProps) { return ( Precision Racing Media Viewer } actions={ src && window.open(src, '_blank')} title="Download" /> } >
{src ? ( {alt} ) : ( No image selected )} {/* Navigation Controls */} {onPrev && (
)} {onNext && (
)}
); }