1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Link } from 'react-router-dom';
5 import { getTranslation } from '../../helpers/Technique';
6 import i18n from '../../i18n';
8 const List = ({ techniques }) => <ul className="tech-list">
9 {techniques.map(tech =>
12 <Link to={`/tech/${tech.name}`}>
13 {getTranslation(tech, 'title', i18n.language)}
16 <p>{getTranslation(tech, 'short', i18n.language)}</p>
22 techniques: PropTypes.arrayOf(PropTypes.shape({
24 name: PropTypes.string,