diff --git a/app/search/children-wrapper.tsx b/app/search/children-wrapper.tsx new file mode 100644 index 000000000..8a49aa958 --- /dev/null +++ b/app/search/children-wrapper.tsx @@ -0,0 +1,8 @@ +'use client'; +import { useSearchParams } from 'next/navigation'; +import { Fragment } from 'react'; + +export default function ChildrenWrapper({ children }: { children: React.ReactNode }) { + const searchParams = useSearchParams(); + return {children}; +} diff --git a/app/search/layout.tsx b/app/search/layout.tsx index 5ef628120..1af30ab58 100644 --- a/app/search/layout.tsx +++ b/app/search/layout.tsx @@ -2,6 +2,7 @@ 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'; +import ChildrenWrapper from './children-wrapper'; export default function SearchLayout({ children }: { children: React.ReactNode }) { return ( @@ -10,7 +11,9 @@ export default function SearchLayout({ children }: { children: React.ReactNode }
-
{children}
+
+ {children} +