import React, { forwardRef } from "react"; import Image from "next/image"; export interface Recent_CardProps { image: string; title: string; tag: string; description: string; // Add additional props for event handlers onClick?: React.MouseEventHandler; onTouchStart?: React.TouchEventHandler; onTouchEnd?: React.TouchEventHandler; onTouchMove?: React.TouchEventHandler; } const Recent_Card = forwardRef(({ image, title, tag, description, onClick, onTouchStart, onTouchEnd, onTouchMove, ...props }, ref) => { return (
{/* Image container with consistent aspect ratio */}
{title}
{tag}
{/* Content section */}

{title}

{description}

); }); Recent_Card.displayName = "Recent_Card"; export default Recent_Card;