import React from "react";
const Suggestions = (props) => {
    if (!props.suggestions) {
        return null;
    }
    const options = props.suggestions.map(s => {
        if (typeof s === "string") {
            return React.createElement("option", { value: s, key: s });
        }
        return React.createElement("option", { value: s.value, key: s.value }, s.label);
    });
    return (React.createElement("datalist", { id: props.id }, options));
};
export { Suggestions };
//# sourceMappingURL=Suggestions.js.map