import React from 'react'; interface ListWrapperProps { listType?: 'ul' | 'ol'; className?: string; elementClassName?: string; } export const ListWrapper: React.FC = (props) => { const ListTag=props.listType ?? 'ol'; return ( { React.Children.map(props.children, (elem) => (
  • {elem}
  • )) }
    ); };