import { getCollection, getMetaobject } from 'lib/shopify';
import DefaultContent from './default-content';
import DynamicContent from './dynamic-content';
const Content = async ({ collection }: { collection: string }) => {
const collectionData = await getCollection({ handle: collection });
if (!collectionData) {
return null;
}
if (!collectionData.dynamicContent) {
return ;
}
const content = await getMetaobject({ id: collectionData.dynamicContent });
if (!content) {
return ;
}
return ;
};
export default Content;