Add Leaflet and react-leaflet dependencies for interactive map functionality Extend DDDepot type with optional latitude/longitude fields for map markers Update site metadata and admin settings page text Add client-side DepotMap component to render depot locations Update PocketBase admin token in environment configuration
10 lines
808 B
TypeScript
10 lines
808 B
TypeScript
import { type MutableRefObject } from 'react';
|
|
import type { LeafletContextInterface } from './context.js';
|
|
export declare type LeafletElement<T, C = any> = Readonly<{
|
|
instance: T;
|
|
context: LeafletContextInterface;
|
|
container?: C | null;
|
|
}>;
|
|
export declare function createElementObject<T, C = any>(instance: T, context: LeafletContextInterface, container?: C | null): LeafletElement<T, C>;
|
|
export declare type ElementHook<E, P> = (props: P, context: LeafletContextInterface) => MutableRefObject<LeafletElement<E>>;
|
|
export declare function createElementHook<E, P, C = any>(createElement: (props: P, context: LeafletContextInterface) => LeafletElement<E>, updateElement?: (instance: E, props: P, prevProps: P) => void): (props: P, context: LeafletContextInterface) => ReturnType<ElementHook<E, P>>;
|