"use client"; import { motion } from "framer-motion"; import { Link } from "react-router-dom"; import { ArrowLeft } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import PhotoGallery from "@/components/home/PhotoGallery"; import RelatedMigrants from "@/components/home/RelatedMigrants"; import HistoricalContext from "@/components/home/HistoricalContext"; import AnimatedImage from "@/components/ui/animated-image"; import type { MigrantProfile as MigrantProfileType } from "@/types/migrant"; interface MigrantProfileProps { migrant: MigrantProfileType; } export default function MigrantProfile({ migrant }: MigrantProfileProps) { return (
{/* Hero section with main photo */}

{migrant.firstName} {migrant.lastName}

{migrant.yearOfArrival} • {migrant.regionOfOrigin}, Italy →{" "} {migrant.settlementLocation}, NT

{/* Back button */}
{/* Main content - 2/3 width on desktop */}
{/* Biographical information */}

Biographical Information

Full Name

{migrant.firstName}{" "} {migrant.middleName ? migrant.middleName + " " : ""} {migrant.lastName}

Birth Date

{migrant.birthDate || "Unknown"}

Birth Place

{migrant.birthPlace || "Unknown"}

Age at Migration

{migrant.ageAtMigration} years

Year of Arrival

{migrant.yearOfArrival}

Region of Origin

{migrant.regionOfOrigin}, Italy

Settlement Location

{migrant.settlementLocation}, NT

Occupation

{migrant.occupation || "Unknown"}

{migrant.deathDate && ( <>

Date of Death

{migrant.deathDate}

Place of Death

{migrant.deathPlace || "Unknown"}

)}
{/* Life story */} {migrant.biography && (

La Storia di Vita

{migrant.biography.split("\n").map((paragraph, index) => (

{paragraph}

))}
)} {/* Photo gallery - only show if there are additional photos */} {migrant.photos && migrant.photos.length > 0 && ( )}
{/* Sidebar - 1/3 width on desktop */}
{/* Historical context */} {/* Related migrants */} {migrant.relatedMigrants && migrant.relatedMigrants.length > 0 && ( )}
); }