UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) 476 B
import{jsx as e}from"react/jsx-runtime";import{captureException as o}from"@sentry/react";import n from"react";export default class a extends n.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r,t){o(r,{contexts:{react:{componentStack:t.componentStack}}})}render(){return this.state.hasError?e("h4",{style:{textAlign:"center"},children:"Not available offline."}):this.props.children}}