UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) • 515 B
import{jsx as i}from"react/jsx-runtime";import{PermissionNotice as s}from"@expofp/ui";import{observer as n}from"mobx-react-lite";import{t as o}from"../../utils/i18n";export default n(function({isOpen:e,onAllow:t,onCancel:r}){return e?i(s,{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});