1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { useTranslation } from 'react-i18next';
5 import Requirement from './Requirement';
7 const Requirements = ({ technique }) => {
8 const { t } = useTranslation();
10 if (!technique.requirements || !technique.requirements.length) {
14 return <div className="tech-requirements mb-3">
15 {t('techniques.requirements')}
17 {technique.requirements.map((r, i) =>
19 <Requirement requirement={r} />
26 Requirements.propTypes = {
27 technique: PropTypes.shape({
28 requirements: PropTypes.arrayOf(
29 PropTypes.arrayOf(PropTypes.string),
34 export default Requirements;