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