// app/components/Projects.tsx "use client"; import Link from "next/link"; import { useEffect, useState } from "react"; interface Project { id: string; title: string; description: string; link: string; } export default function Projects() { const [projects, setProjects] = useState([]); useEffect(() => { fetch("/data/projects.json") .then((res) => res.json()) .then((data) => setProjects(data)); }, []); return (

Projects

{projects.map((project) => (

{project.title}

{project.description}

View Project
))}
); }