{product.name}
View available variants and pricing.
View candle →import { Link } from "wouter";
import { useQuery } from "@tanstack/react-query";
import Alert from "@mui/material/Alert";
import Button from "@mui/material/Button";
import Skeleton from "@mui/material/Skeleton";
import { Flame } from "lucide-react";
import { listProducts } from "@/lib/api";
import { usePlatform } from "@/lib/platform";
import { ApiNotice } from "./ApiNotice";
import "@/pages/products.css";
export function Catalog({
search = "",
offset = 0,
limit = 12,
onNext,
onPrevious,
}: {
search?: string;
offset?: number;
limit?: number;
onNext?: () => void;
onPrevious?: () => void;
}) {
const { organization } = usePlatform();
const query = useQuery({
queryKey: ["catalog", organization, search, offset, limit],
queryFn: ({ signal }) =>
listProducts(organization, search, offset, limit, signal),
enabled: Boolean(organization),
retry: false,
});
if (!organization)
return (
View available variants and pricing.
View candle →