Untitled

mail@pastecode.io avatar
unknown
typescript
a month ago
553 B
3
Indexable
Never
const RenderContentItem = ({ content, uri, _id, imageName }: IContentProps) => {
  const { t } = useTranslation();
  return (
    <div>
      <Typography style={{ textIndent: "2em" }}>{content}</Typography>
      {uri.map((image, index) => (
        <div key={index}>
          <img src={image} alt={`content-${index}`} loading="lazy" />
          <figcaption className="image-description">
            {`${t("picNumber")} ${index + 1}: ${imageName}`}
          </figcaption>
          <br />
          <br />
        </div>
      ))}
    </div>
  );
};
Leave a Comment