+
{ _t("Who are you working with?") }
+
{ _t("Ensure the right people have access to the space.") }
+
+
+ { _t("Just Me") }
+ { _t("A private space just for you") }
+ ,
+ }, {
+ value: "meAndMyTeammates",
+ className: "mx_SpaceRoomView_privateScope_meAndMyTeammatesButton",
+ label:
+ { _t("Me and my teammates") }
+ { _t("A private space for you and your teammates") }
+ ,
+ },
+ ]}
+ />
+
+
+ onFinished(option !== "justMe")} />
+
+ ;
+};
+
+const validateEmailRules = withValidation({
+ rules: [{
+ key: "email",
+ test: ({ value }) => !value || Email.looksValid(value),
+ invalid: () => _t("Doesn't look like a valid email address"),
+ }],
+});
+
+const SpaceSetupPrivateInvite = ({ space, onFinished }) => {
+ const [busy, setBusy] = useState(false);
+ const [error, setError] = useState("");
+ const numFields = 3;
+ const fieldRefs: RefObject