import React from 'react';
import { PickerContentProvider } from './PickerContentProvider';
import { PickerSelectorListContent } from '../PickerSelectorListContent';
import { fromMultipleSelectionToBoolean } from '../MaxSelection';
import { PickerContentWrapped } from './PickerContentWrapped';
export function PickerContent(props) {
    const { modalState } = props;
    // wrap with a new WixPatternsContainer that can get initialProps
    return (React.createElement(PickerContentProvider, { modalState: modalState },
        React.createElement(PickerContentWrapped, { ...props, renderPickerContent: ({ state, renderItem }) => (React.createElement(PickerSelectorListContent, { ...props.selectorListProps, state: state, multiple: fromMultipleSelectionToBoolean(props.multiple), hasAdditionalStep: props.hasAdditionalStep, renderItem: renderItem })) })));
}
//# sourceMappingURL=PickerContent.js.map