import * as React from "react"; import { REGIONALIZED_RELAYER_ENDPOINTS } from "../constants/default"; import styled from "styled-components"; import Icon from "./Icon"; import { useState } from "react"; interface DropdownProps { relayerRegion: string; setRelayerRegion?: (relayer: string) => void; } const SelectContainer = styled.select` width: 150px; background: transparent; color: black; height: 30px; border-radius: 4px; padding: 2px; font-size: "1.25em"; position: absolute; bottom: 40px; left: 50px; direction: ltr; unicode-bidi: embed; `; const SelectOption = styled.option` font-size: "1.25em"; `; const Dropdown = (props: DropdownProps) => { const { relayerRegion, setRelayerRegion } = props; const [openSelect, setOpenSelect] = useState(false); const selectRef = React.createRef(); const openDropdown = () => { setOpenSelect(!openSelect); }; return (