-
-
- setName(e.target.value)}
- placeholder="Alert name"
- />
-
-
-
- {
- const next =
- typeof newTags === "function"
- ? newTags(userTags)
- : newTags;
- setUserTags(next as Tag[]);
- }}
- enableAutocomplete
- autocompleteOptions={allUsers}
- restrictTagsToAutocompleteOptions
- allowDuplicates={false}
- sortTags
- />
-
-
-
- {
- const next =
- typeof newTags === "function"
- ? newTags(roleTags)
- : newTags;
- setRoleTags(next as Tag[]);
- }}
- enableAutocomplete
- autocompleteOptions={allRoles}
- restrictTagsToAutocompleteOptions
- allowDuplicates={false}
- sortTags
- />
-
-
-
- {
- const next =
- typeof newTags === "function"
- ? newTags(emailTags)
- : newTags;
- setEmailTags(next as Tag[]);
- }}
- allowDuplicates={false}
- sortTags
- validateTag={(tag) =>
- /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(tag)
- }
- delimiterList={[",", "Enter"]}
- />
-
+
+