import React from 'react';
import { observer } from 'mobx-react-lite';
import { CollectionSectionHeader } from '../CollectionSectionHeader';
function _GridSectionHeader(props) {
    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 (React.createElement(CollectionSectionHeader, { dataHook: "grid-section-header", sectionId: sectionId, sectionIndex: sectionIndex, section: sectionWithCount, skin: layoutType === 'list' ? 'light' : 'neutral', biComponentType: "GridSections" }));
}
export const GridSectionHeader = observer(_GridSectionHeader);
//# sourceMappingURL=GridSectionHeader.js.map