commerce/app/search/[collection]/opengraph-image.tsx
2025-07-06 23:37:24 -05:00

14 lines
362 B
TypeScript

import OpengraphImage from "components/opengraph-image";
import { getCollection } from "lib/shopify";
export default async function Image({
params,
}: {
params: { collection: string };
}) {
const collection = await getCollection(params.collection);
const title = collection?.seo?.title || collection?.title;
return await OpengraphImage({ title });
}