mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 14:42:31 +00:00
14 lines
361 B
TypeScript
14 lines
361 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 });
|
|
}
|