synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
70 lines (69 loc) • 2.8 kB
JavaScript
import { jsxs as r, Fragment as n, jsx as e } from "react/jsx-runtime";
import "@sage-bionetworks/synapse-types";
import "../../utils/functions/EntityTypeUtils.js";
import { getEndpoint as o, BackendDestinationEnum as a } from "../../utils/functions/getEndpoint.js";
import "../../synapse-client/SynapseClient.js";
import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
import "@sage-bionetworks/synapse-client/util/SynapseClientError";
import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
import "lodash-es";
import { SYNAPSE_DOCS_SHARING_SETTINGS_PERMISSIONS_CONDITIONS_FOR_USE_URL as m, DATA_CATALOG_PATH_SEGMENT as s } from "../../utils/SynapseConstants.js";
import { Alert as l, Box as c, Typography as i, Link as t } from "@mui/material";
function O() {
return /* @__PURE__ */ r(n, { children: [
/* @__PURE__ */ r(l, { severity: "error", sx: { mb: 2 }, children: [
"This page is currently ",
/* @__PURE__ */ e("strong", { children: "private" }),
".",
/* @__PURE__ */ e("br", {}),
"You may want to make it ",
/* @__PURE__ */ e("strong", { children: "public" }),
" before you continue."
] }),
/* @__PURE__ */ r(c, { rowGap: "15px", display: "flex", flexDirection: "column", children: [
/* @__PURE__ */ e(i, { variant: "body1", children: "DOIs are permanent identifiers for citing research works. When someone accesses a DOI, they must be able to view basic information (metadata) about the work. We recommend making this metadata publicly visible, even if the underlying data remains access-restricted." }),
/* @__PURE__ */ e(
t,
{
href: "https://www.doi.org/the-identifier/what-is-a-doi/",
target: "_blank",
rel: "noreferrer noopener",
variant: "body1",
children: "More about DOIs (external URL)"
}
),
/* @__PURE__ */ e(
t,
{
href: m,
target: "_blank",
rel: "noreferrer noopener",
variant: "body1",
children: "Show me how to make this page public"
}
),
/* @__PURE__ */ r(i, { variant: "body1", children: [
/* @__PURE__ */ e("strong", { children: "Note:" }),
" Resources with a DOI may be included in the",
" ",
/* @__PURE__ */ e(
t,
{
href: `${o(
a.PORTAL_ENDPOINT
)}${s}`,
target: "_blank",
rel: "noopener",
children: "Synapse Data Catalog"
}
),
"."
] })
] })
] });
}
export {
O as PrivateEntityDoiWarning
};
//# sourceMappingURL=PrivateEntityDoiWarning.js.map