import { memo } from 'react'; import type { TMessageContentParts } from 'librechat-data-provider'; import Part from './Part'; type ContentPartsProps = { content: Array; messageId: string; isCreatedByUser: boolean; isLast: boolean; isSubmitting: boolean; }; const ContentParts = memo( ({ content, messageId, isCreatedByUser, isLast, isSubmitting }: ContentPartsProps) => { return ( <> {content .filter((part) => part) .map((part, idx) => ( ))} ); }, ); export default ContentParts;