import React, { FC } from "react"; import { withTheme } from "../../theme/hoc/withTheme"; import { Pressable, ChevronDownIcon, Text } from "native-base"; import FuseIcon from "../../assets/svg/fuse.svg"; import CeloIcon from "../../assets/svg/celo.svg"; import XdcIcon from "../../assets/svg/xdc.svg"; type SelectBoxProps = { text: string; press: () => void; isListItem: boolean; isListOpen: boolean; variant?: string; }; // TODO: make imports from .svg work const IconList: { [key: string]: string } = { Fuse: FuseIcon, Celo: CeloIcon, XDC: XdcIcon }; const SelectBox: FC = withTheme({ name: "SelectBox" })(({ text, press, isListItem, ...props }) => ( {/* Temp workaround for loading the network svg icons */} {text} {!isListItem && ( )} )); export default SelectBox;