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