import * as React from "react"; import Image from "next/image"; import { ChevronRight } from "lucide-react"; import { cn } from "@/shared/utils/utils"; export interface CardProps extends React.HTMLAttributes { href?: string; image?: string; tag?: string; title: string; description?: string; } export function Card({ href, image, tag, title, description, className, ...props }: Readonly) { const componentProps = href ? { href } : {}; return (
{image && (
{title} {tag && (
{tag}
)}
)}

{title}

{description && (

{description}

)} {href && (
Lihat selengkapnya
)}
); }