// import { ComponentProps } from "react"; // import { formatDistanceToNow } from "date-fns"; // import { cn } from "@/lib/utils"; // import { Badge } from "@/components/ui/badge"; // interface Props { // item: ProjectType; // } // export const Project = ({ item }: Props) => { // return ( // // // // // {item.name} // {!item.read && ( // // )} // // // {formatDistanceToNow(new Date(item.date), { // addSuffix: true, // })} // // // // {item.labels.length ? ( // // {item.labels.map((label) => ( // // {label} // // ))} // // ) : null} // // ); // }; // const getBadgeVariantFromLabel = ( // label: string, // ): ComponentProps["variant"] => { // if (["work"].includes(label.toLowerCase())) { // return "default"; // } // if (["personal"].includes(label.toLowerCase())) { // return "outline"; // } // return "secondary"; // };