UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

51 lines (50 loc) 1.92 kB
import { jsx as r, Fragment as s, jsxs as n } from "react/jsx-runtime"; import { formatDate as i } from "../../utils/functions/DateFormatter.js"; import { Skeleton as a } from "@mui/material"; import o from "dayjs"; import { Markdown as m } from "../Markdown/MarkdownSynapse.js"; import { SkeletonTable as u } from "../Skeleton/SkeletonTable.js"; import { UserBadge as d } from "../UserCard/UserBadge.js"; function f({ info: e }) { return /* @__PURE__ */ r(s, { children: e && /* @__PURE__ */ n("div", { className: "SubmissionInfoCard", children: [ /* @__PURE__ */ r("strong", { children: " Project Lead: " }), " ", /* @__PURE__ */ r("span", { children: e.projectLead }), " ", /* @__PURE__ */ r("br", {}), /* @__PURE__ */ r("strong", { children: " Institution: " }), " ", /* @__PURE__ */ r("span", { children: e.institution }), " ", /* @__PURE__ */ r("br", {}), /* @__PURE__ */ r("strong", { children: " Data Access Request Submitted By: " }), " ", /* @__PURE__ */ r(d, { userId: e.submittedBy }), " ", /* @__PURE__ */ r("br", {}), /* @__PURE__ */ n("strong", { children: [ " ", "Intended Data Use Statement (accepted on", " ", i(o(e.modifiedOn), "M/D/YYYY"), "):" ] }), /* @__PURE__ */ r(m, { markdown: e.intendedDataUseStatement }), e.accessorChanges && e.accessorChanges.map((t) => /* @__PURE__ */ n("div", { children: [ /* @__PURE__ */ r(d, { userId: t.userId }), " ", t.type ] }, `${t.userId}-${t.type}`)) ] }) }); } function g() { return /* @__PURE__ */ n("div", { className: "SubmissionInfoCard", children: [ /* @__PURE__ */ r(u, { numCols: 1, numRows: 4 }), /* @__PURE__ */ r(a, { variant: "rectangular", width: "100%", height: 80 }) ] }); } export { g as LoadingSubmissionInfoCard, f as SubmissionInfoCard }; //# sourceMappingURL=IDUReportSubmissionInfo.js.map