@expofp/floorplan
Version:
Interactive floor plan library for expos and events
2 lines (1 loc) • 510 B
JavaScript
import{jsx as i}from"react/jsx-runtime";import{observer as s}from"mobx-react-lite";import n from"../../ui/PermissionNotice";import{t as o}from"../../utils/i18n";export default s(function({isOpen:e,onAllow:t,onCancel:r}){return e?i(n,{title:o("Show your position on the map"),acceptText:o("Allow compass access"),rejectText:o("Not now"),onAccept:t,onReject:r,children:o("To display your current position and orient the map around you, we\u2019ll ask for permission to access your device orientation")}):null});