]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/pages/Map.js
44ac0a05f5a441e8ecd368ec1cb2a81b1a4b3590
[alttp.git] / resources / js / components / pages / Map.js
1 import React from 'react';
2 import { Container } from 'react-bootstrap';
3 import { useTranslation } from 'react-i18next';
4
5 import Buttons from '../map/Buttons';
6 import OpenSeadragon from '../map/OpenSeadragon';
7 import Pins from '../map/Pins';
8
9 const Map = () => {
10         const container = React.useRef();
11         const { t } = useTranslation();
12
13         React.useEffect(() => {
14                 window.document.title = t('map.heading');
15         }, []);
16
17         return <Container fluid>
18                 <OpenSeadragon ref={container}>
19                         <div className="d-flex align-items-center justify-content-between">
20                                 <h1>{t('map.heading')}</h1>
21                                 <Buttons />
22                         </div>
23                         <div ref={container} style={{ height: '80vh' }} />
24                         <Pins />
25                 </OpenSeadragon>
26         </Container>;
27 };
28
29 export default Map;