@fchh/fcos-suite-map
Version:
This project contains a Map component that can be used to display relevant locations of a Fab City. It is a npm package that contains a React component, which can be embedded into other web projects. It uses Mapbox GL as an interactive mapping framework a
43 lines (42 loc) • 1.85 kB
TypeScript
import { Error } from 'src/types/Error';
import { PointOfInterest } from 'src/types/PointOfInterest';
import { Notification } from 'src/types/Notification';
interface Store {
categoryColorMapping: Record<string, string> | null;
setCategoryColorMapping: (data: Record<string, string> | null) => void;
tagColorMapping: Record<string, string> | null;
setTagColorMapping: (data: Record<string, string> | null) => void;
poiData: PointOfInterest[] | null;
setPoiData: (data: PointOfInterest[] | null) => void;
selectedPoi: PointOfInterest | null;
setSelectedPoi: (poi: PointOfInterest | null) => void;
hoveredPoi: PointOfInterest | null;
setHoveredPoi: (poi: PointOfInterest | null) => void;
error: Error | null;
setError: (error: Error | null) => void;
notification: Notification | null;
setNotification: (notification: Notification | null) => void;
filterTags: string[];
setFilterTags: (tags: string[]) => void;
filterCategories: string[];
setFilterCategories: (categories: string[]) => void;
isSidebarHidden: boolean;
setIsSidebarHidden: (value: boolean) => void;
isDesktop: boolean;
setIsDesktop: (value: boolean) => void;
}
export declare const useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<Store>, "setState"> & {
setState(partial: Store | Partial<Store> | ((state: Store) => Store | Partial<Store>), replace?: false | undefined, action?: (string | {
[x: string]: unknown;
[x: number]: unknown;
[x: symbol]: unknown;
type: string;
}) | undefined): void;
setState(state: Store | ((state: Store) => Store), replace: true, action?: (string | {
[x: string]: unknown;
[x: number]: unknown;
[x: symbol]: unknown;
type: string;
}) | undefined): void;
}>;
export {};