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

46 lines (45 loc) 1.26 kB
import { jsxs as n, jsx as r } from "react/jsx-runtime"; import { Stack as c } from "@mui/material"; import { HelpPopover as a } from "../../../HelpPopover/HelpPopover.js"; import { VersionSelectionType as o } from "../../VersionSelectionType.js"; const t = "Choose which version of this item you would like to reference.", l = "Choose which version of this item you would like to perform this action on.", m = 'If you would like the selection to update as new versions are created, choose "Always Latest Version".'; function C(s) { const { versionSelection: i } = s; let e = ""; switch (i) { case o.REQUIRED: e = t; break; case o.TRACKED: e = t + " " + m; break; case o.UNTRACKED: e = l; break; case o.DISALLOWED: } return /* @__PURE__ */ n( c, { direction: "row", sx: { alignItems: "center" }, children: [ /* @__PURE__ */ r("span", { children: "Version" }), /* @__PURE__ */ r( a, { className: "SRC-margin-left-5", markdownText: e, placement: "right" } ) ] } ); } export { C as VersionColumnHeader }; //# sourceMappingURL=VersionColumnHeader.js.map