Files
meshtastic-web/src/components/MapBox/mapboxContext.ts
T
2022-02-07 00:00:55 +11:00

13 lines
262 B
TypeScript

import React from 'react';
import type mapbox from 'mapbox-gl';
export interface MapboxContextValue {
ref: React.Ref<HTMLDivElement>;
map?: mapbox.Map;
}
export const MapboxContext = React.createContext<MapboxContextValue>(
{} as MapboxContextValue,
);