2024-03-20 13:39:20 +00:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2024-03-20 13:39:20 +00:00
|
|
|
Copyright 2024 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-09 14:57:16 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2024-03-20 13:39:20 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Exports beacon components which touch maplibre-gs wrapped in React Suspense to enable code splitting
|
|
|
|
|
|
2025-03-27 10:43:58 +00:00
|
|
|
import React, { type JSX, type ComponentProps, lazy, Suspense } from "react";
|
2024-03-20 13:39:20 +00:00
|
|
|
|
|
|
|
|
import Spinner from "../elements/Spinner";
|
|
|
|
|
|
|
|
|
|
const BeaconViewDialogComponent = lazy(() => import("./BeaconViewDialog"));
|
|
|
|
|
|
|
|
|
|
export function BeaconViewDialog(props: ComponentProps<typeof BeaconViewDialogComponent>): JSX.Element {
|
|
|
|
|
return (
|
|
|
|
|
<Suspense fallback={<Spinner />}>
|
|
|
|
|
<BeaconViewDialogComponent {...props} />
|
|
|
|
|
</Suspense>
|
|
|
|
|
);
|
|
|
|
|
}
|