import React from 'react'; import type {PickerProps, RenderList} from '../../base'; import Picker, {type PickerItem} from '../../base'; import type {AdditionalProps} from './VirtualizedList'; import VirtualizedList from './VirtualizedList'; export type WithVirtualizedProps> = AdditionalProps & PickerProps; type WithVirtualizedComponent = >( props: WithVirtualizedProps, ) => React.ReactElement; const renderList: RenderList = (props) => { return ; }; const withVirtualized = ( WrappedComponent: typeof Picker, ): WithVirtualizedComponent => { const Wrapper = >( props: WithVirtualizedProps, ) => { return ; }; // @ts-ignore Wrapper.displayName = `withVirtualized(${WrappedComponent.displayName})`; return Wrapper; }; export default withVirtualized;