import * as Icons from "../components/Icons.tsx"; export interface Project { image: string; title: string; link: string; github?: string; } interface ProjectProps { items: Project[]; class?: string; } export default function Projects(props: ProjectProps) { return (
{props.items.filter((item) => item.link.length > 0).map((project) => (
{project.title}
{project.github && ( GitHub )}
))}
); }