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

30 lines (29 loc) 945 B
import { jsx as o } from "react/jsx-runtime"; import * as i from "../../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-types"; import "../../utils/functions/EntityTypeUtils.js"; import "../../utils/SynapseConstants.js"; import "lodash-es"; import "@sage-bionetworks/synapse-client/util/synapseClientFetch"; import { Button as m } from "@mui/material"; function g(t) { const { callback: r } = t; return /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o( m, { variant: "contained", color: "primary", onClick: () => { i.signOut().then(r); }, children: "Log out" } ) }); } export { g as default }; //# sourceMappingURL=Logout.js.map