import { ReactNode } from "react"; import AnimatedContent from "../AnimatedContent"; import SEO from "../SEO"; import DownloadButton from "../DownloadButton"; export interface ProjectMedia { src: string; alt: string; href?: string; } interface ProjectPageProps { title: string; subtitle: string; description: string; media?: ProjectMedia[]; downloadId?: string; children?: ReactNode; headerDelay?: number; } const ProjectPage = ({ title, subtitle, description, media = [], downloadId, children, headerDelay = 0.1, }: ProjectPageProps) => { return (

{title}

{subtitle}

{children && (
{children}
)} {media.length > 0 && (
1 ? "" : "items-center" }`} > {media.map((item, index) => { const image = ( {item.alt} ); if (item.href) { return ( {image} ); } return (
{image}
); })}
)} {downloadId && (
)}
); }; export default ProjectPage;