]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/techniques/Detail.js
88ce5943b62c02447fc3c3c856fb0742377ed740
[alttp.git] / resources / js / components / techniques / Detail.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Container } from 'react-bootstrap';
4
5 const Detail = ({ technique }) => <Container>
6         <h1>{technique.title}</h1>
7         <div dangerouslySetInnerHTML={{ __html: technique.description }} />
8 </Container>;
9
10 Detail.propTypes = {
11         technique: PropTypes.shape({
12                 description: PropTypes.string,
13                 title: PropTypes.string,
14         }),
15 };
16
17 export default Detail;