+ {!state.controlsUnlocked ? (
+
+ ) : (
+ <>
+
state.setFundSearch(event.target.value)}
+ className="w-full rounded-2xl border border-border bg-surface px-3 py-2 text-sm text-text-primary"
+ placeholder="Search common Yearn and Kong assets"
+ />
+
+ {state.filteredAssets.length === 0 ? (
+
{'No matching assets'}
+ ) : (
+ state.filteredAssets.map((asset) => (
+
state.setSelectedAssetAddress(asset.address)}
+ />
+ ))
+ )}
+
+
+
{'Selected asset'}
+ {state.selectedAsset ? (
+ <>
+
+ {`${state.selectedAsset.symbol} · ${state.selectedAsset.name}`}
+
+
+ {state.selectedAsset.address}
+
+ >
+ ) : (
+
{'Choose an asset to fund the connected wallet.'}
+ )}
+
+
+
state.setFundAmount(event.target.value)}
+ className="rounded-full border border-border bg-surface px-3 py-2 text-sm text-text-primary"
+ placeholder={state.selectedAsset ? `Amount in ${state.selectedAsset.symbol}` : 'Amount'}
+ />
+ {state.selectedAsset?.assetKind === 'native' ? (
+
+ ) : null}
+
void state.handleFundWallet()}
+ disabled={
+ state.pendingAction !== null ||
+ !state.connectedWalletAddress ||
+ !state.selectedAsset ||
+ !state.fundAmount
+ }
+ variant="primary"
+ />
+
+ >
+ )}
+
+