1 import React from 'react';
2 import { Button } from 'react-bootstrap';
3 import { useTranslation } from 'react-i18next';
5 import { useOpenSeadragon } from './OpenSeadragon';
7 const Buttons = () => {
8 const { activeMap, setActiveMap } = useOpenSeadragon();
9 const { t } = useTranslation();
11 return <div className="button-bar">
12 {['lw', 'dw', 'sp', 'uw'].map(map =>
14 active={activeMap === map}
16 onClick={() => setActiveMap(map)}
17 title={t(`map.${map}Long`)}
18 variant="outline-secondary"
20 {t(`map.${map}Short`)}
26 export default Buttons;