import { db } from "@/lib/db";
import { categories } from "@/lib/db/schema";
import VideoForm from "@/components/admin/VideoForm";

export const dynamic = "force-dynamic";

export default async function NewVideoPage() {
  const cats = await db.select().from(categories);
  return (
    <div>
      <h2 className="text-lg font-semibold mb-4">Add Video</h2>
      <VideoForm categories={cats} />
    </div>
  );
}
