import React from 'react'; import { FiltersMap } from '@wix/bex-core'; import { SectionRange } from './GridSectionsState'; import { observer } from 'mobx-react-lite'; import { GridSectionsSectionState } from './GridSectionsSectionState'; import { CollectionSectionHeader } from '../CollectionSectionHeader'; export interface GridSectionHeaderProps { sectionDescriptor: SectionRange; state: GridSectionsSectionState; } function _GridSectionHeader( props: GridSectionHeaderProps, ) { const { sectionDescriptor, state } = props; const { gridBase: { layoutType }, } = state; const { sectionId, sectionIndex, section, range } = sectionDescriptor; const sectionWithCount = { ...section, count: range.length, hasMore: state.isLast && !state.gridSections.collection.fetchedLastPage, }; return ( ); } export const GridSectionHeader = observer(_GridSectionHeader);