Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

544 B
Raw Blame
import PropTypes from "prop-types";
import React from "react";
import { Typography } from "@/components/ui/shims/antd-typography";

function TextViewer({ text }) {
  return (
    <div className="text-viewer-layout">
      <Typography.Paragraph>
        {text.split("\n").map((line) => (
          <React.Fragment key={line?.slice(0, 10)}>
            {line}
            <br />
          </React.Fragment>
        ))}
      </Typography.Paragraph>
    </div>
  );
}

TextViewer.propTypes = {
  text: PropTypes.string,
};

export { TextViewer };