import React from "react";
import * as styles from "./styles";
export function Link({ url, onClick, }) {
    if (!url) {
        return null;
    }
    return (React.createElement("a", { onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(url), "data-testid": "poi-popup-link", className: styles.container, href: url, target: "_blank", rel: "noopener noreferrer" }, url));
}
//# sourceMappingURL=index.js.map