]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/techniques/Overview.js
16868655b12fe473a2f7425415939504fa914a74
[alttp.git] / resources / js / components / techniques / Overview.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Container } from 'react-bootstrap';
4 import { withTranslation } from 'react-i18next';
5
6 import List from './List';
7 import i18n from '../../i18n';
8
9 const Overview = ({
10         namespace,
11         techniques,
12 }) => <Container>
13         <h1>{i18n.t(`${namespace}.heading`)}</h1>
14         <List techniques={techniques} />
15 </Container>;
16
17 Overview.propTypes = {
18         namespace: PropTypes.string,
19         techniques: PropTypes.arrayOf(PropTypes.shape({
20         })),
21 };
22
23 export default withTranslation()(Overview);