+export const getLink = tech => {
+ if (tech.type === 'dungeon') {
+ return `/dungeons/${tech.name}`;
+ }
+ if (tech.type === 'location') {
+ return `/locations/${tech.name}`;
+ }
+ if (tech.type === 'mode') {
+ return `/modes/${tech.name}`;
+ }
+ if (tech.type === 'ruleset') {
+ return `/rulesets/${tech.name}`;
+ }
+ return `/tech/${tech.name}`;
+};
+