{showHeader && (
<>
{currentSpecies ? "Change Origin: " : "Choose Origin: "}
{"Species"}
{currentSpecies && (
<>
Select New Species
>
)}
>
)}
Filter Species Source(s)
setSource(value as string)}
name="species-sources"
optionsWidth="large"
/>
Show Legacy Content{" "}
<>
Legacy content doesn't reflect the latest rules and lore.{" "}
Learn More
>
Check your source settings on the Home tab if you can't
find Species you've purchased.
Expand your library in the
Marketplace
{" "}
for more Species options.
{isLoading ? (
) : (
<>
setQuery(e.target.value)}
/>
handleOverrideClick(false)}
forceThemeMode="light"
>
Collapse All
handleOverrideClick(true)}
forceThemeMode="light"
>
Expand All
{mappedSourceCategoryGroups.length > 0 ? (
mappedSourceCategoryGroups.map((category) => {
const name = category.name;
const id = category.id;
const description = getSourceCategoryDescription(category.id);
const currentSpeciesId = currentSpecies
? [
`${currentSpecies.entityRaceId}-${currentSpecies.entityRaceTypeId}`,
]
: [];
const groupedSpecies = getSpeciesInGroups(
transformSpecies(category.items)
);
const metaItems = description
? [ ]
: [];
return (
{name}}
summaryMetaItems={metaItems}
variant="text"
resetOpen={allSpecies.length !== filteredSpecies.length}
key={id}
forceShow
override={category.isOpen}
handleIsOpen={handleSourceCategoryClick}
>
);
})
) : (
)}
>
)}
);
};