import React from 'react' import { Link } from 'react-router-dom' import PageShell from '../components/Layout/PageShell' import { PageSpinner } from '../components/shared/Spinner' import PhotoGallery from '../components/Photos/PhotoGallery' import { ArrowLeft } from 'lucide-react' import { useTranslation } from '../i18n' import { usePhotos } from './photos/usePhotos' export default function PhotosPage(): React.ReactElement { const { t } = useTranslation() // Page = wiring container: trip/days/places load, photo sync + handlers live in the hook. const { tripId, navigate, trip, days, places, photos, isLoading, handleUpload, handleDelete, handleUpdate } = usePhotos() if (isLoading) { return ( ) } return ( navigate(`/trips/${tripId}`) }}>
{/* Header */}
{t('common.backToPlanning')}

{t('photos.title')}

{t('photos.subtitle', { count: photos.length, trip: trip?.name })}

) }