@amicaldo/strapi-google-maps
Version:
A Google Maps custom field for Strapi, allowing you to pick a location.
26 lines (25 loc) • 758 B
TypeScript
import { Coordinates } from '../../../../types';
export default function Search({ userCoords, onPlaceSelected, onPlaceDetails, }: {
userCoords?: GeolocationCoordinates;
onPlaceSelected: (place: {
address: string;
coordinates: Coordinates;
}) => void;
onPlaceDetails?: (details: {
address: string;
coordinates: Coordinates;
components?: {
streetNumber?: string;
route?: string;
postalCode?: string;
city?: string;
state?: string;
country?: string;
};
place?: {
id?: string;
name?: string;
types?: string[];
};
}) => void;
}): import("react/jsx-runtime").JSX.Element;