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

61 lines (60 loc) 2.53 kB
import { jsx as o, Fragment as d, jsxs as c } from "react/jsx-runtime"; import { Box as p, Typography as e, FormControlLabel as h, Checkbox as g } from "@mui/material"; import { useLocalStorageValue as u } from "@react-hookz/web"; import { EXTERNAL_COMPUTE_ENV_DISCLAIMER as f } from "../../../utils/SynapseConstants.js"; import { ConfirmationDialog as x } from "../../ConfirmationDialog/ConfirmationDialog.js"; function C(r) { const { showDisclaimer: n, onConfirm: i, onCancel: a } = r, { value: s, set: l } = u(f), t = !!s; return /* @__PURE__ */ o( x, { open: n, title: "Disclaimer", content: /* @__PURE__ */ o(d, { children: /* @__PURE__ */ c( p, { sx: { backgroundColor: "grey.100", marginBottom: "15px", padding: "20px" }, children: [ /* @__PURE__ */ o( e, { variant: "body1", sx: { fontWeight: 700, marginBottom: "10px" }, children: "Disclaimer" } ), /* @__PURE__ */ o(e, { variant: "body1", sx: { marginBottom: "10px" }, children: "Sage Bionetworks may integrate with, and provide links to, compute environments as an alternative to downloading files. These integrations or provisions do not signify an endorsement of that particular environment by Sage Bionetworks or funders, nor does it alter the relationship between Sage Bionetworks, existing data contributors, project sponsors or funders, or computational providers." }), /* @__PURE__ */ o(e, { variant: "body1", sx: { marginBottom: "20px" }, children: "Furthermore, it is the responsibility of individual users to review the terms of data use for each compute environment, as well as for the portal or repository from which the data is sourced. Users must personally ensure that all data access terms and conditions are met." }), /* @__PURE__ */ o( h, { control: /* @__PURE__ */ o(g, {}), label: "I acknowledge and accept these terms", checked: t, onChange: (v, m) => l(m) } ) ] } ) }), confirmButtonProps: { children: "Continue", disabled: !t }, onConfirm: i, onCancel: a, maxWidth: "md" } ); } export { C as ExternalPlatformDisclaimer }; //# sourceMappingURL=ExternalPlatformDisclaimer.js.map