"use client";

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

export default function DetailAudioInfo() {
  const params = useParams();
  const idParam = params?.id;
  const id =
    typeof idParam === "string"
      ? Number(idParam)
      : Array.isArray(idParam)
      ? Number(idParam[0])
      : 0;

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