'use client' import React, { FC } from 'react' import { useTranslation } from 'react-i18next' export interface IPreviewItemProps { index: number content: string } const sharpIcon = ( ) const textIcon = ( ) const PreviewItem: FC = ({ index, content, }) => { const { t } = useTranslation() const charNums = (content || '').length const formatedIndex = (() => (index + '').padStart(3, '0'))() return ( {sharpIcon} {formatedIndex} {textIcon} {charNums} {t('datasetCreation.stepTwo.characters')} {content} ) } export default React.memo(PreviewItem)