geoiq-frontend-ui-kit
Version:
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
32 lines (31 loc) • 874 B
TypeScript
import { MAP_LAYER_CONFIG } from './map-layer-config';
export interface MapToolbarProps {
map: google.maps.Map | null;
mapRef: React.RefObject<HTMLDivElement>;
hideCTA?: boolean;
hideDropPin?: boolean;
isDropActive?: boolean;
isFullScreen?: boolean;
setFullScreen?: React.Dispatch<React.SetStateAction<boolean>>;
onToggleIsDropAPin?: (isActive: boolean) => void;
disableDropPin?: boolean;
mapId?: string;
ctaConfig?: {
ctaLabel: string;
ctaCallback: () => void;
};
children?: React.ReactNode;
}
export type MapLayerType = {
key: keyof typeof MAP_LAYER_CONFIG;
label: string;
type: 'roadmap' | 'hybrid';
traffic: boolean;
};
export type MapLayerOption = {
key: string;
label: string;
onClick: () => void;
icon: JSX.Element;
};
//# sourceMappingURL=map-toolbar.types.d.ts.map