import React from "react";
import { LocalLogicMap } from "@local-logic/maps";
import * as styles from "./styles";
import { useLocalContent } from "~/sdks/LocalContent/context";
export function CenterPin() {
    const { centerMarker } = useLocalContent();
    if (!centerMarker) {
        return null;
    }
    return (React.createElement(LocalLogicMap.CenterPin, { className: styles.container, marker: {
            id: "local-content-center-pin",
            latitude: centerMarker.lat,
            longitude: centerMarker.lng,
            name: centerMarker.addressLabel || "Center Pin",
        } }));
}
//# sourceMappingURL=index.js.map