]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/pages/Map.js
basic map pins
[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         return <Container fluid>
14                 <OpenSeadragon ref={container}>
15                         <div className="d-flex align-items-center justify-content-between">
16                                 <h1>{t('map.heading')}</h1>
17                                 <Buttons />
18                         </div>
19                         <div ref={container} style={{ height: '80vh' }} />
20                         <Pins />
21                 </OpenSeadragon>
22         </Container>;
23 };
24
25 export default Map;