
https://dev.tizh.ru/v1/project/get-applications?id=683




import { Heading, Paragraph, Rating } from "src/FSD/shared/uiKit/v2";
import { BorderLine } from "./BorderLine";
import { RemoveExecutorButton } from "./RemoveExecutorButton";
import styles from "./Comparison.module.scss";

const executors = [217, 245];

const groupId = 11;

type TProps = {
  applications: any;
};

export const Header = ({ applications }: TProps) => {
  return (
    <>
      {/* Кнопки очистки */}
      <div />
      {Object.keys(applications[groupId].userTypes).map((userTypeId) => (
        <>
          <div />
          <RemoveExecutorButton />
        </>
      ))}
      {/* ФИО */}
      <Paragraph className={styles.rowName}>
        Проектировщик
        <br />
        Ф.И.О.
      </Paragraph>
      {Object.values(applications[groupId].userTypes).map(({ fio }: any) => (
        <>
          <BorderLine />
          <Heading>{fio}</Heading>
        </>
      ))}
      {/* Форма собственности */}
      <Paragraph className={styles.rowName}>Форма собственности</Paragraph>
      {Object.values(applications[groupId].userTypes).map(
        ({ userTypeText }: any) => (
          <>
            <BorderLine />
            <Paragraph>{userTypeText}</Paragraph>
          </>
        )
      )}
      {/* Рейтинг */}
      <Paragraph className={styles.rowName}>Рейтинг</Paragraph>
      {Object.values(applications[groupId].userTypes).map(({ rating }: any) => (
        <>
          <BorderLine />
          <Rating.Star value={rating} />
        </>
      ))}
    </>
  );
};









     ({ statusText, price, badReasons, process, ndsText, task }: any) => {
          const formattedStatusText = statusText.replace(/&nbsp;/g, " ");

          return (
            <div
              key={process.id}
              className={styles.groupApplicationsTable__line}
            >
              <Paragraph color="light">{process.title}</Paragraph>
              {task ? (
                <>
                  <Correspondence
                    badReasons={badReasons}
                    statusText={formattedStatusText}
                  />
                  <PaymentAndDeadlines
                    price={price}
                    ndsText={ndsText}
                    dateStart={task.workflow_data.date_start}
                    dateLimit={task.workflow_data.date_limit}
                  />
                  <Comment value={task.content} />
                </>
              ) : (
                <>
                  <EmptyCell />
                  <EmptyCell />
                  <EmptyCell />
                </>
              )}
            </div>
          );