import { useState, useEffect } from "react";

export function useProductDetail(id: string) {
  const [product, setProduct] = useState<{
    id: string;
    name: string;
  } | null>(null);

  useEffect(() => {
    console.log("Loading product:", id);
  }, [id]);

  return { product };
}
