Skip to content

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

1.1 KB
Raw Blame
import PropTypes from "prop-types";
import { Typography } from "@/components/ui/shims/antd-typography";
import "./ContentCenterLayout.css";

function ContentCenterLayout({ children, headerText, mainText, subText }) {
  return (
    <div className="content-center-layout">
      {headerText?.length > 0 && (
        <div className="content-center-header">
          <Typography className="content-center-header-text">
            {headerText}
          </Typography>
        </div>
      )}
      <div className="content-center-body">
        <div className="content-center-body-2">
          <div className="content-center-body-3">
            <div>{children}</div>
            <div>
              <Typography.Text>{mainText}</Typography.Text>
            </div>
            <div>
              <Typography.Text type="secondary">{subText}</Typography.Text>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
}

ContentCenterLayout.propTypes = {
  children: PropTypes.oneOfType([PropTypes.node, PropTypes.element]),
  headerText: PropTypes.string,
  mainText: PropTypes.string,
  subText: PropTypes.string,
};

export { ContentCenterLayout };