@red-hat-developer-hub/backstage-plugin-bulk-import
Version:
64 lines (61 loc) • 1.69 kB
JavaScript
import { jsxs, jsx } from 'react/jsx-runtime';
import { StatusPending, Link } from '@backstage/core-components';
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
import Typography from '@mui/material/Typography';
import GitAltIcon from './GitAltIcon.esm.js';
import GitLabIcon from './GitLabIcon.esm.js';
const WaitingForPR = ({
url,
isApprovalToolGitlab
}) => {
return /* @__PURE__ */ jsxs(
Typography,
{
component: "span",
style: {
display: "flex"
},
children: [
/* @__PURE__ */ jsx(StatusPending, {}),
isApprovalToolGitlab ? /* @__PURE__ */ jsx(
GitLabIcon,
{
style: {
height: "1.4em",
width: "2em",
paddingRight: "5px",
marginTop: "2px"
}
}
) : /* @__PURE__ */ jsx(
GitAltIcon,
{
style: {
height: "1.4em",
width: "2em",
paddingRight: "5px"
}
}
),
/* @__PURE__ */ jsx(Typography, { component: "span", style: { color: "#757575" }, children: "Waiting for approval" }),
url && /* @__PURE__ */ jsxs(
Link,
{
to: url,
"data-testid": "pull request url",
style: {
paddingLeft: "5px",
display: "inline-flex"
},
children: [
"PR",
/* @__PURE__ */ jsx(OpenInNewIcon, { sx: { paddingBottom: "5px", paddingTop: "3px" } })
]
}
)
]
}
);
};
export { WaitingForPR };
//# sourceMappingURL=WaitingForPR.esm.js.map