feat(poc): react nextjs initial

This commit is contained in:
Björn Meyer
2023-07-06 10:42:30 +02:00
parent 8c8240956a
commit c9cf57c933
27 changed files with 9010 additions and 658 deletions

View File

@@ -1,12 +1,16 @@
import clsx from 'clsx';
import { Suspense } from 'react';
import { getCollections } from 'lib/shopify';
import { getStaticCollections } from 'lib/shopware';
import FilterList from './filter';
import { transformStaticCollectionToList } from 'lib/shopware/transform';
async function CollectionList() {
const collections = await getCollections();
return <FilterList list={collections} title="Collections" />;
const collections = await getStaticCollections();
if (collections) {
const list = transformStaticCollectionToList(collections);
return <FilterList list={list} title="Collections" />;
}
}
const skeleton = 'mb-3 h-4 w-5/6 animate-pulse rounded';