<SearchPageBase />

This component is to handle search functionality and also handles load more.

A template must be passed in to render search results. Fields can be passed to get specific fields in the results. The contents of are passed to the rendered template.

import { SearchPageBase } from "@quintype/components";

function SearchPageView({query, stories, onLoadMore, loading, noMoreStories}) {
  return <div />;

<SearchPageBase template={SearchPageView} fields={"id,headline"} {...props}/>