import i18n from '../i18n';
+export const getLink = tech => {
+ if (tech.type === 'mode') {
+ return `/modes/${tech.name}`;
+ }
+ if (tech.type === 'ruleset') {
+ return `/rulesets/${tech.name}`;
+ }
+ return `/tech/${tech.name}`;
+};
+
export const getRelations = (tech, type) => {
const rs = (tech && tech.relations) || [];
return type ? rs.filter(r => r && r.pivot && r.pivot.type === type) : rs;