import { useEffect } from "react";
import { getOrders } from "./orderService";

export default function TestOrderService() {
  useEffect(() => {
    getOrders().then(data => {
      console.log("Orders from API:", data);
    }).catch(err => {
      console.error("Error fetching orders:", err);
    });
  }, []);
  return <div>Check the console for order data</div>;
}
