synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
36 lines (35 loc) • 1.3 kB
JavaScript
import { jsxs as r, jsx as e } from "react/jsx-runtime";
import { Typography as c, Box as a, Button as l } from "@mui/material";
import m from "./ChallengeTeamTable.js";
import { Stack as h } from "@mui/system";
import p from "@mui/icons-material/AddCircleTwoTone";
const s = 'To participate in a challenge, you need to create a new Team or join an existing one. By default, the participant who creates a team is the "Team Captain" and has the ability to invite and remove members. All team members will need a Synapse account so that they can login and accept the team invitation.', C = ({
challengeId: t,
onCreateTeam: n,
selectedTeamId: i,
onSelectTeam: o
}) => /* @__PURE__ */ r(h, { spacing: 2, children: [
/* @__PURE__ */ e(c, { variant: "body1", sx: { lineHeight: "20px" }, children: s }),
/* @__PURE__ */ e(a, { sx: { height: 270 }, children: /* @__PURE__ */ e(
m,
{
challengeId: t,
selectedTeamId: i,
onSelectTeam: o
}
) }),
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
l,
{
color: "primary",
variant: "contained",
onClick: n,
startIcon: /* @__PURE__ */ e(p, {}),
children: "Create New Team"
}
) })
] });
export {
C as SelectChallengeTeam
};
//# sourceMappingURL=SelectChallengeTeam.js.map