import { Result } from '@yext/search-headless-react'; import { CardComponent } from './cardComponent'; import { DefaultRawDataType } from './DefaultRawDataType'; import React from 'react'; /** * The configuration of a section template for a vertical's results on a universal page. * * @public */ export interface SectionProps { /** The results from this vertical. */ results: Result[], /** The key for the vertical. */ verticalKey: string, /** A header to display above the results. */ header?: React.JSX.Element, /** The card to use for this vertical. */ CardComponent?: CardComponent, /** Whether or not to allow more results to be viewed. */ viewMore?: boolean } /** * A component that can be used to render a section template for vertical results. * * @public */ export type SectionComponent = (props: SectionProps) => React.JSX.Element | null;