import { FileText, PlusCircle, FolderTree, Settings } from 'lucide-react'
import { SectionCard } from '../components/SectionCard'
import { Breadcrumbs } from '../components/Breadcrumbs'
import styles from '../components/PageContent.module.css'

const blogSections = [
  {
    icon: FileText,
    title: 'My Blogs',
    description: 'View, edit and manage all your blog posts.',
    linkText: 'View blogs',
    href: '/blog/list',
  },
  {
    icon: PlusCircle,
    title: 'Add New Blog',
    description: 'Create and publish a new blog post.',
    linkText: 'Add blog',
    href: '/blog/new',
  },
  {
    icon: FolderTree,
    title: 'Blog Categories',
    description: 'Organize your blog posts into categories and subcategories.',
    linkText: 'View categories',
    href: '/blog/categories',
  },
  {
    icon: Settings,
    title: 'Settings',
    description: 'Configure blog comment moderation and display options.',
    linkText: 'View settings',
    href: '/blog/settings',
  },
]

export function BlogPage() {
  return (
    <main className={styles.content}>
      <Breadcrumbs
        items={[
          { label: 'Dashboard', href: '/' },
          { label: 'Blog' },
        ]}
      />
      <div className={styles.pageHeader}>
        <div>
          <h2 className={styles.pageTitle}>Blog</h2>
          <p className={styles.pageSubtitle}>
            Create and manage blog posts and categories.
          </p>
        </div>
      </div>

      <div className={styles.gridHome}>
        {blogSections.map((section) => (
          <SectionCard key={section.title} {...section} />
        ))}
      </div>
    </main>
  )
}
