import List from './List';
import i18n from '../../i18n';
-const Overview = ({ techniques }) => <Container>
- <h1>{i18n.t('techniques.heading')}</h1>
+const Overview = ({
+ namespace,
+ techniques,
+}) => <Container>
+ <h1>{i18n.t(`${namespace}.heading`)}</h1>
<List techniques={techniques} />
</Container>;
Overview.propTypes = {
+ namespace: PropTypes.string,
techniques: PropTypes.arrayOf(PropTypes.shape({
})),
};