import { GridBaseState, gridSizePresets, topGridSizePreset, } from '../../state';
import React, { useState } from 'react';
import { GridContent } from '../Grid/GridContent';
export function GridSectionsSingleSkeletonGrid(props) {
    const { range, imagePlacement, state: parentState, layoutType } = props;
    const { toolbar, collection } = parentState;
    const [state] = useState(() => new GridBaseState({
        container: toolbar.container,
        toolbar: toolbar,
        collection,
        sizePreset: imagePlacement
            ? gridSizePresets[imagePlacement]
            : topGridSizePreset,
        range,
        parentState,
        layoutType,
    }));
    return (React.createElement(GridContent, { ...props, paddingTop: layoutType === 'list' ? 'SP2' : 'SP4', state: state, withInfiniteScrollLoader: true }));
}
//# sourceMappingURL=GridSectionsSingleSkeletonGrid.js.map