import ScrollReveal from "@/components/ui/ScrollReveal"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; type BlogArticleProps = { category: string; title: string; excerpt?: string; content: string; imageSrc: string; authorName: string; authorImageSrc: string; date: string; readingTime?: string; backButton?: { text: string; href: string }; }; const BlogArticle = ({ category, title, excerpt, content, imageSrc, authorName, authorImageSrc, date, readingTime, backButton = { text: "Back to Blog", href: "/blog" }, }: BlogArticleProps) => { return (
{backButton.text} / {category}

{title}

{excerpt && (

{excerpt}

)}
{authorName} {date} {readingTime && ` ยท ${readingTime}`}
); }; export default BlogArticle;