"use client";

import { useParams } from "next/navigation";
import DetailVideo from "@/components/main/content/video-detail";

export default function DetailVideoInfo() {
  const params = useParams();
  // const id = params?.id as string;
  const idParam = params?.id;

  const id =
    typeof idParam === "string"
      ? Number(idParam)
      : Array.isArray(idParam)
      ? Number(idParam[0])
      : 0;

  return <DetailVideo id={id} />;
}
