import React from 'react'; import Box from '../Box'; import type { IListItemProps } from './types'; import { useThemeProps } from '../../../hooks'; const ListItem = React.memo(({ children, ...props }: IListItemProps) => { const { index, start, unordered, ul, ordered, ol, _text, borderTopWidth, ...newProps } = useThemeProps('ListItem', props); return ( {ul || unordered ? ( //Adding disc in front of ListItem ) : null} {ol || ordered ? ( //Adding index number in front of ListItem {index + start + '.'} ) : null} {children} ); }); export default React.memo(ListItem);