2023-04-17 23:00:47 -04:00
|
|
|
import Footer from 'components/layout/footer';
|
|
|
|
import Collections from 'components/layout/search/collections';
|
|
|
|
import FilterList from 'components/layout/search/filter';
|
|
|
|
import { sorting } from 'lib/constants';
|
2024-08-13 13:33:05 -05:00
|
|
|
import ChildrenWrapper from './children-wrapper';
|
2025-02-09 11:38:22 -06:00
|
|
|
import { Suspense } from 'react';
|
2023-04-17 23:00:47 -04:00
|
|
|
|
2025-02-09 11:38:22 -06:00
|
|
|
export default function SearchLayout({
|
|
|
|
children
|
|
|
|
}: {
|
|
|
|
children: React.ReactNode;
|
|
|
|
}) {
|
2023-04-17 23:00:47 -04:00
|
|
|
return (
|
2024-04-17 21:54:09 -05:00
|
|
|
<>
|
2025-02-09 11:38:22 -06:00
|
|
|
<div className="mx-auto flex max-w-(--breakpoint-2xl) flex-col gap-8 px-4 pb-4 text-black md:flex-row dark:text-white">
|
2023-07-24 21:40:29 -05:00
|
|
|
<div className="order-first w-full flex-none md:max-w-[125px]">
|
2023-04-17 23:00:47 -04:00
|
|
|
<Collections />
|
|
|
|
</div>
|
2024-08-13 13:33:05 -05:00
|
|
|
<div className="order-last min-h-screen w-full md:order-none">
|
2025-02-09 11:38:22 -06:00
|
|
|
<Suspense fallback={null}>
|
|
|
|
<ChildrenWrapper>{children}</ChildrenWrapper>
|
|
|
|
</Suspense>
|
2024-08-13 13:33:05 -05:00
|
|
|
</div>
|
2023-07-24 21:40:29 -05:00
|
|
|
<div className="order-none flex-none md:order-last md:w-[125px]">
|
2023-04-17 23:00:47 -04:00
|
|
|
<FilterList list={sorting} title="Sort by" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Footer />
|
2024-04-17 21:54:09 -05:00
|
|
|
</>
|
2023-04-17 23:00:47 -04:00
|
|
|
);
|
|
|
|
}
|