import { getStockSilo } from "@/utils/querys/logistics/siloAdjustments/getStockSilo"; import { useQuery } from "@tanstack/react-query"; import SiloCard from "./SiloCard"; export default function SiloPage() { const { data, isError, error, isLoading } = useQuery(getStockSilo()); if (isLoading) return; if (isError) return; if (error) return (
{" "} There was an error getting the silos please notify your admin if this continues to be an issue
); return (
{data?.map((s: any) => (
))}
); }