1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Link } from 'react-router-dom';
5 import Rulesets from './Rulesets';
9 } from '../../helpers/Technique';
10 import i18n from '../../i18n';
12 const List = ({ techniques }) => <ul className="tech-list">
13 {techniques.map(tech =>
14 <li className="d-flex align-items-start justify-content-between" key={tech.id}>
17 <Link to={getLink(tech)}>
18 {getTranslation(tech, 'title', i18n.language)}
21 <p>{getTranslation(tech, 'short', i18n.language)}</p>
24 <Rulesets technique={tech} />
31 techniques: PropTypes.arrayOf(PropTypes.shape({
33 name: PropTypes.string,