import React from 'react';
import { getBlogs } from "@/app/actions/adminData";
import BlogClient from "./BlogClient";

export default async function BlogAdminPage() {
  const blogs = await getBlogs();

  return (
    <div className="space-y-6">
      <div className="flex justify-between items-center">
        <h1 className="text-2xl font-black text-gray-900">Articles & Blogs</h1>
      </div>
      <BlogClient initialBlogs={blogs} />
    </div>
  );
}
