synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
36 lines (35 loc) • 854 B
JavaScript
import { jsxs as l, Fragment as n, jsx as e } from "react/jsx-runtime";
import { Typography as a, TextField as d, Box as p, Alert as u } from "@mui/material";
function m({
errorMessage: r,
repoName: t,
onRepoNameChange: o
}) {
return /* @__PURE__ */ l(n, { children: [
/* @__PURE__ */ e(a, { variant: "body1", children: "Repository Name" }),
/* @__PURE__ */ e(
d,
{
id: "repo",
name: "repo",
fullWidth: !0,
onChange: (i) => o(i.target.value),
placeholder: "ex. index.docker.io:500/library/ubuntu",
value: t
}
),
r && /* @__PURE__ */ e(
p,
{
sx: {
mt: 1
},
children: /* @__PURE__ */ e(u, { severity: "error", children: r })
}
)
] });
}
export {
m as default
};
//# sourceMappingURL=AddExternalRepo.js.map