mirror of
https://github.com/vercel/commerce.git
synced 2025-06-28 01:11:24 +00:00
25 lines
893 B
TypeScript
25 lines
893 B
TypeScript
import Footer from 'components/layout/footer';
|
|
import FilterList from 'components/layout/search/filter';
|
|
import { sorting } from 'lib/constants';
|
|
import { Suspense } from 'react';
|
|
import ChildrenWrapper from './children-wrapper';
|
|
|
|
export default function SearchLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<>
|
|
<div className="mx-auto flex max-w-screen-2xl flex-col gap-8 px-4 pb-4 text-black md:flex-row dark:text-white">
|
|
<div className="order-first w-full flex-none md:max-w-[150px]">
|
|
<FilterList list={sorting} title="Sort by" />
|
|
</div>
|
|
<div className="order-last w-full md:order-none">
|
|
<Suspense>
|
|
<ChildrenWrapper>{children}</ChildrenWrapper>
|
|
</Suspense>
|
|
</div>
|
|
<div className="order-none flex-none md:order-last md:w-[100px]"></div>
|
|
</div>
|
|
<Footer />
|
|
</>
|
|
);
|
|
}
|