import { observer } from "mobx-react-lite";
import styled from "styled-components";
import { useState } from "react";
import { ArrowRightIcon } from "../icons/arrow-right";
import { PopupOption, PopupOptionInfo } from "../styles";
import { ConnectorType, OmniConnector } from "../../OmniConnector";
import { HotConnector } from "../../HotConnector";
import { Recipient } from "../../omni/recipient";
import { WalletType } from "../../omni/config";
import { openWalletPicker } from "../router";
import { formatter } from "../../omni/utils";
import Popup from "../Popup";
import { ImageView } from "./TokenCard";
interface SelectRecipientProps {
recipient?: Recipient;
type: WalletType;
onSelect: (recipient?: Recipient) => void;
hot: HotConnector;
onClose: () => void;
}
export const SelectRecipient = observer(({ recipient, hot, type, onSelect, onClose }: SelectRecipientProps) => {
const connectors = hot.connectors.filter((t) => t.walletTypes.includes(type) && t.type !== ConnectorType.SOCIAL);
const [customAddress, setCustomAddress] = useState
Enter recipient address, avoid CEX
{t.name}
{t.wallets[0]?.address && {formatter.truncateAddress(t.wallets[0].address)}}Connect
: