import * as React from "react"; import { PairingTypes } from "@walletconnect/types"; import Button from "../components/Button"; import Pairing from "../components/Pairing"; import { STable } from "../components/shared"; import { SModalContainer, SModalTitle } from "./shared"; interface PairingModalProps { pairings: PairingTypes.Settled[]; connect: (pairing?: { topic: string }) => Promise; } const PairingModal = (props: PairingModalProps) => { const { pairings, connect } = props; return ( {"Select available pairing or create new one"} {pairings.map(pairing => ( connect({ topic: pairing.topic })} /> ))} ); }; export default PairingModal;