import React from "react";
import VideoPlayer from "@/views/video-player";

type Props = {
  params: Promise<{ slug: string }>;
  searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
};

const page = async ({ params }: Props) => {
  // ⬇️ Await params before using slug
  const { slug } = await params;

  return (
    <div className="pt-[100px]">
      <VideoPlayer seriesId={slug} />
    </div>
  );
};

export default page;
