import { ISearch } from "@lonelyplanet/open-planet-node/dist/resources/search"; import * as cn from "classnames"; import * as React from "react"; import { AutocompleteResultsListItem } from "./autocompleteResultsListItem"; import * as styles from "./styles.css"; export interface IResultList { items: ISearch[]; className?: string; } const getImageUrl = str => str && str.includes("imgix") ? str : ""; export const AutocompleteResultsList = ({ items, className }: IResultList) => ( );