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

60 lines (59 loc) 1.68 kB
import { jsxs as r, jsx as e } from "react/jsx-runtime"; import { Typography as i, Button as n } from "@mui/material"; import a from "../IconSvg/IconSvg.js"; const l = "Create local sharing settings", c = "Delete local sharing settings"; function g(o) { const { isInherited: s, setIsInherited: t } = o; return s ? /* @__PURE__ */ r("div", { children: [ /* @__PURE__ */ e( i, { variant: "body1", sx: { mt: 2, mb: 1 }, children: "Sharing settings are initially inherited from the parent folder or project by default. To customize settings for a specific file, folder, or table, you must create and adjust local sharing settings." } ), /* @__PURE__ */ e( n, { variant: "contained", size: "small", color: "success", startIcon: /* @__PURE__ */ e(a, { icon: "add", wrap: !1 }), onClick: () => t(!1), children: l } ) ] }) : /* @__PURE__ */ r("div", { children: [ /* @__PURE__ */ e( i, { variant: "body1", sx: { mt: 2, mb: 1 }, children: "The sharing settings will be inherited from the parent folder or project if local sharing settings are deleted." } ), /* @__PURE__ */ e( n, { variant: "outlined", size: "small", color: "error", onClick: () => t(!0), children: c } ) ] }); } export { l as CREATE_LOCAL_SHARING_SETTINGS, g as CreateOrDeleteLocalSharingSettingsButton, c as DELETE_LOCAL_SHARING_SETTINGS }; //# sourceMappingURL=CreateOrDeleteLocalSharingSettingsButton.js.map