"use client";

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

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

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