import { Card, CardBody, Typography, Button, } from "@material-tailwind/react"; import Image from 'next/image' interface AboutCardProp { title: string; subTitle: string; description: string; imageName: string; paper_links: string; } export function AboutCard({ title, description, subTitle,imageName,paper_links }: AboutCardProp) { return ( {}} onPointerLeaveCapture={() => {}} > {}} onPointerLeaveCapture={() => {}} > {/* next/image */} {}} onPointerLeaveCapture={() => {}} > {title} {isVideo(imageName) ? ( ) : ( next/image )} {/* next/image */} {subTitle} {description} ); } function isVideo(filename: string) { return ['.mp4', '.webm', '.ogg'].some(extension => filename.endsWith(extension)); } export default AboutCard;