import Link from "next/link";
import { Project } from "@/lib/types";
import Chip from "@/components/chip";
import ImageCarousel from "@/components/image-carousel";
import {
Eye,
CloudDownload,
AppWindow,
Smartphone,
Globe,
MonitorCog,
Gamepad2,
Github,
} from "lucide-react";
const PlaceholderIcon = ({ category }: { category: Project["category"] }) => {
const iconProps = { size: 128, className: "text-white/80" };
switch (category) {
case "Desktop":
return ;
case "Mobile":
return ;
case "Web":
return ;
case "Api":
return ;
case "Game":
return ;
default:
return null;
}
};
interface ProjectItemProps {
project: Project;
}
const ProjectItem = ({ project }: ProjectItemProps) => {
const ImageDisplay = (
{project.thumbnails && project.thumbnails.length > 0 ? (
) : (
)}
);
return (
{project.name}
{project.short_description}
{project.technologies.map((tech) => (
))}
Read more
{project.github_url && (
CODE
)}
{project.visit_url && (
LIVE
)}
{project.download_url && (
DOWNLOAD
)}
{ImageDisplay}
{ImageDisplay}
);
};
export default ProjectItem;