{_t("create_space|private_personal_heading")}
{_t("create_space|private_personal_description", {
name: justCreatedOpts?.createOpts?.name || space.name,
})}
{
onFinished(false);
}}
>
{_t("create_space|personal_space")}
{_t("create_space|personal_space_description")}
{
onFinished(true);
}}
>
{_t("create_space|private_space")}
{_t("create_space|private_space_description")}
);
};
const validateEmailRules = withValidation({
rules: [
{
key: "email",
test: ({ value }) => !value || Email.looksValid(value),
invalid: () => _t("auth|email_field_label_invalid"),
},
],
});
const SpaceSetupPrivateInvite: React.FC<{
space: Room;
onFinished(): void;
}> = ({ space, onFinished }) => {
const [busy, setBusy] = useState(false);
const [error, setError] = useState("");
const numFields = 3;
const fieldRefs = [useRef