X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fmap%2FButtons.js;h=b07fba66a69134809195632e6c3b290937ebbef8;hb=9ef50fb234872b1827e7ef44b667333a7f9e5c9f;hp=b43fc0e64d8c3d9a772bbbfca408ad1536f8d59a;hpb=18424fc6de2fc902ee2b2d3143955081263adff4;p=alttp.git diff --git a/resources/js/components/map/Buttons.js b/resources/js/components/map/Buttons.js index b43fc0e..b07fba6 100644 --- a/resources/js/components/map/Buttons.js +++ b/resources/js/components/map/Buttons.js @@ -1,47 +1,48 @@ +import PropTypes from 'prop-types'; import React from 'react'; -import { Button } from 'react-bootstrap'; +import { Button, Form } from 'react-bootstrap'; import { useTranslation } from 'react-i18next'; import { useOpenSeadragon } from './OpenSeadragon'; -const Buttons = () => { - const { viewer } = useOpenSeadragon(); +const Buttons = ({ setUWOverlay, uwOverlay }) => { + const { activeMap, setActiveMap } = useOpenSeadragon(); const { t } = useTranslation(); - const goToPage = React.useCallback((p) => { - if (viewer) viewer.goToPage(p); - }, [viewer]); - - return