import { Metadata } from 'next'
import { blogPosts } from '@/lib/blogPosts'
import { BlogPostTemplate } from '@/components/blog/BlogPostTemplate'

const post = blogPosts['plant-health-diagnosis-guide']

export const metadata: Metadata = {
  title: post.metaTitle,
  description: post.metaDescription,
  alternates: {
    canonical: post.canonical,
  },
  openGraph: {
    title: post.metaTitle,
    description: post.metaDescription,
    images: [{ url: post.heroImage }],
  },
}

export default function PlantHealthDiagnosisGuidePage() {
  return <BlogPostTemplate post={post} />
}
