synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
44 lines (43 loc) • 2.26 kB
JavaScript
import { jsxs as s, jsx as e, Fragment as n } from "react/jsx-runtime";
import i from "@mui/icons-material/ExpandMore";
import { Stack as a, Typography as r, Accordion as c, AccordionSummary as d, AccordionDetails as u } from "@mui/material";
import { UserAccessRequestHistoryTable as l } from "./UserAccessRequestHistoryTable.js";
const o = [
// {
// summary:
// 'Why do I still have access to data when I have an expired, canceled, or rejected access request?',
// details:
// "This table shows all the requests you've ever been part of, including requests that were canceled, rejected, or that have since expired. If an older request was canceled, rejected, or has expired, but a newer request was approved and is still active, you'll still have access to the data.",
// },
// {
// summary: 'Some other question?',
// details: 'Here is another answer!',
// },
];
function v() {
return /* @__PURE__ */ s(
a,
{
sx: {
gap: 2
},
children: [
/* @__PURE__ */ e(r, { variant: "headline1", gutterBottom: !0, children: "History of your access requests" }),
/* @__PURE__ */ e(r, { variant: "body1", gutterBottom: !0, children: "This list represents every access request you have been named in. It includes requests you've submitted yourself, and requests submitted by others, which you were named as a requester on." }),
/* @__PURE__ */ e(r, { variant: "body1", gutterBottom: !0, children: 'Note: Requests where your access has been revoked will appear as "Approved".' }),
o.length > 0 && /* @__PURE__ */ s(n, { children: [
/* @__PURE__ */ e(r, { variant: "headline2", gutterBottom: !0, children: "Frequently Asked Questions" }),
/* @__PURE__ */ e("div", { children: o.map((t) => /* @__PURE__ */ s(c, { sx: { p: 1 }, children: [
/* @__PURE__ */ e(d, { expandIcon: /* @__PURE__ */ e(i, {}), children: /* @__PURE__ */ e(r, { variant: "headline3", children: t.summary }) }),
/* @__PURE__ */ e(u, { children: t.details })
] }, t.summary)) })
] }),
/* @__PURE__ */ e(l, {})
]
}
);
}
export {
v as UserAccessRequestHistoryPage
};
//# sourceMappingURL=UserAccessRequestHistoryPage.js.map