() => {
const [choice, setChoice] = React.useState("");
return (
<Popover
renderInPortal={false}
content={
<>
<ListChoice
title="Oslo, Norway"
onClick={(event) => setChoice(event.currentTarget.innerText)}
/>
<ListChoice
title="Prague, Czechia"
onClick={(event) => setChoice(event.currentTarget.innerText)}
/>
<ListChoice
title="Milan, Italy"
onClick={(event) => setChoice(event.currentTarget.innerText)}
/>
</>
}
noPadding
>
<InputField label="To" inlineLabel value={choice} />
</Popover>
);
};