@pollar/react 0.12.1-rc.18 → 0.12.1-rc.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1309,7 +1309,7 @@ var PollarModalFooter = ({ language: languageProp }) => {
1309
1309
  /* @__PURE__ */ jsx("img", { src: LOGO_POLLAR_WORDMARK_ON_DARK, alt: "Pollar", className: "pollar-footer-logo pollar-logo-on-dark" }),
1310
1310
  /* @__PURE__ */ jsxs("span", { className: "pollar-footer-version", children: [
1311
1311
  "v",
1312
- "0.12.1-rc.18"
1312
+ "0.12.1-rc.19"
1313
1313
  ] })
1314
1314
  ] });
1315
1315
  };
@@ -2158,11 +2158,52 @@ function ChainSelect({ label, value, options, onChange, disabled = false, langua
2158
2158
  disabled,
2159
2159
  "aria-label": label ?? COMMONS_COPY[language].network,
2160
2160
  onChange: (chain) => onChange(chain),
2161
- options: options.map((chain) => ({ value: chain, label: CHAIN_LABEL[chain] ?? chain }))
2161
+ options: options.map((chain) => ({
2162
+ value: chain,
2163
+ label: CHAIN_LABEL[chain] ?? chain,
2164
+ icon: /* @__PURE__ */ jsx(ChainLogo, { chain })
2165
+ }))
2162
2166
  }
2163
2167
  )
2164
2168
  ] });
2165
2169
  }
2170
+ function ChainLogo({ chain }) {
2171
+ const src = CHAIN_LOGOS[chain];
2172
+ return src ? /* @__PURE__ */ jsx("img", { className: "pollar-network-logo", src, alt: "", "aria-hidden": true }) : null;
2173
+ }
2174
+ function NetworkPill({
2175
+ value,
2176
+ options,
2177
+ onChange,
2178
+ locked = false,
2179
+ disabled = false,
2180
+ language: languageProp
2181
+ }) {
2182
+ const language = useInheritedLanguage(languageProp);
2183
+ if (!value || options.length < 2) return null;
2184
+ const label = COMMONS_COPY[language].network;
2185
+ if (locked) {
2186
+ return /* @__PURE__ */ jsxs("span", { className: "pollar-network-tag", title: label, children: [
2187
+ /* @__PURE__ */ jsx(ChainLogo, { chain: value }),
2188
+ CHAIN_LABEL[value] ?? value
2189
+ ] });
2190
+ }
2191
+ return /* @__PURE__ */ jsx(
2192
+ PollarSelect,
2193
+ {
2194
+ className: "pollar-network-pill",
2195
+ "aria-label": label,
2196
+ value,
2197
+ disabled,
2198
+ onChange: (chain) => onChange?.(chain),
2199
+ options: options.map((chain) => ({
2200
+ value: chain,
2201
+ label: CHAIN_LABEL[chain] ?? chain,
2202
+ icon: /* @__PURE__ */ jsx(ChainLogo, { chain })
2203
+ }))
2204
+ }
2205
+ );
2206
+ }
2166
2207
 
2167
2208
  // src/useChains.ts
2168
2209
  function useChains() {
@@ -2890,9 +2931,6 @@ function AssetLogo({ asset, small = false }) {
2890
2931
  if (url && !failed) return /* @__PURE__ */ jsx("img", { className: `pollar-txr-logo${size}`, src: url, alt: asset, onError: () => setFailed(true) });
2891
2932
  return /* @__PURE__ */ jsx("span", { className: `pollar-txr-logo pollar-txr-logo-initial${size}`, "aria-hidden": true, children: asset.slice(0, 1).toUpperCase() });
2892
2933
  }
2893
- function ChainLogo({ chain }) {
2894
- return /* @__PURE__ */ jsx("img", { className: "pollar-txr-chain-inline", src: CHAIN_LOGOS[chain], alt: "", "aria-hidden": true });
2895
- }
2896
2934
  function AccountGlyph() {
2897
2935
  return /* @__PURE__ */ jsx("span", { className: "pollar-txr-logo pollar-txr-logo-glyph", "aria-hidden": true, children: /* @__PURE__ */ jsxs("svg", { width: "18", height: "18", viewBox: "0 0 20 20", fill: "none", children: [
2898
2936
  /* @__PURE__ */ jsx("circle", { cx: "10", cy: "7", r: "3.25", stroke: "currentColor", strokeWidth: "1.6" }),
@@ -3332,7 +3370,10 @@ function EnabledAssetsModalTemplate({
3332
3370
  children: [
3333
3371
  isLoading && data && /* @__PURE__ */ jsx(BusyOverlay, { label: copy.refreshing }),
3334
3372
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header", children: [
3335
- /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
3373
+ /* @__PURE__ */ jsxs("div", { className: "pollar-title-row", children: [
3374
+ /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
3375
+ /* @__PURE__ */ jsx(NetworkPill, { value: selectedChain, options: chains, onChange: onSelectChain, disabled: isLoading || busy })
3376
+ ] }),
3336
3377
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header-actions", children: [
3337
3378
  /* @__PURE__ */ jsx(
3338
3379
  "button",
@@ -3369,16 +3410,6 @@ function EnabledAssetsModalTemplate({
3369
3410
  /* @__PURE__ */ jsx("button", { className: "pollar-modal-close", onClick: onClose, "aria-label": copy.close, children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M2 2l12 12M14 2L2 14", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) })
3370
3411
  ] })
3371
3412
  ] }),
3372
- /* @__PURE__ */ jsx(
3373
- ChainSelect,
3374
- {
3375
- label: copy.network,
3376
- value: selectedChain,
3377
- options: chains,
3378
- onChange: onSelectChain,
3379
- disabled: isLoading || busy
3380
- }
3381
- ),
3382
3413
  walletAddress && /* @__PURE__ */ jsxs("div", { className: "pollar-address-row", children: [
3383
3414
  /* @__PURE__ */ jsx("span", { className: "pollar-address", children: cropAddress(walletAddress) }),
3384
3415
  /* @__PURE__ */ jsx(CopyButton, { value: walletAddress, label: copy.copyWalletAddress })
@@ -8144,10 +8175,12 @@ function ReceiveModalTemplate({
8144
8175
  onClick: (e) => e.stopPropagation(),
8145
8176
  children: [
8146
8177
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header", children: [
8147
- /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
8178
+ /* @__PURE__ */ jsxs("div", { className: "pollar-title-row", children: [
8179
+ /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
8180
+ chains && onSelectChain && /* @__PURE__ */ jsx(NetworkPill, { value: selectedChain, options: chains, onChange: onSelectChain })
8181
+ ] }),
8148
8182
  /* @__PURE__ */ jsx("div", { className: "pollar-modal-header-actions", children: /* @__PURE__ */ jsx("button", { type: "button", className: "pollar-modal-close", onClick: onClose, "aria-label": copy.close, children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M2 2l12 12M14 2L2 14", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) }) })
8149
8183
  ] }),
8150
- chains && onSelectChain && /* @__PURE__ */ jsx(ChainSelect, { label: copy.network, value: selectedChain, options: chains, onChange: onSelectChain }),
8151
8184
  recoveryLocked ? /* @__PURE__ */ jsxs("div", { className: "pollar-receive-locked", role: "alert", children: [
8152
8185
  /* @__PURE__ */ jsx("p", { children: copy.locked }),
8153
8186
  onSetupRecovery && /* @__PURE__ */ jsx("button", { type: "button", className: "pollar-receive-copy-btn", onClick: onSetupRecovery, children: copy.setupRecovery })
@@ -8914,7 +8947,20 @@ function SendModalTemplate({
8914
8947
  /* @__PURE__ */ jsxs("div", { className: "pollar-send-header-left", children: [
8915
8948
  showBack && /* @__PURE__ */ jsx("button", { type: "button", className: "pollar-modal-close", onClick: onBack, "aria-label": copy.back, children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M10 3L5 8l5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
8916
8949
  /* @__PURE__ */ jsxs("div", { className: "pollar-send-title-copy", children: [
8917
- step === "tx" ? /* @__PURE__ */ jsx(TxStatusHeading, { review: txReview, fallback: title }) : /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: title }),
8950
+ /* @__PURE__ */ jsxs("div", { className: "pollar-title-row", children: [
8951
+ step === "tx" ? /* @__PURE__ */ jsx(TxStatusHeading, { review: txReview, fallback: title }) : /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: title }),
8952
+ chains && /* @__PURE__ */ jsx(
8953
+ NetworkPill,
8954
+ {
8955
+ value: selectedChain,
8956
+ options: chains,
8957
+ ...onSelectChain ? { onChange: onSelectChain } : {},
8958
+ locked: step !== "form",
8959
+ disabled: isLoadingBalance,
8960
+ language
8961
+ }
8962
+ )
8963
+ ] }),
8918
8964
  step === "form" && /* @__PURE__ */ jsx("p", { className: "pollar-send-subtitle", children: copy.subtitle.replace("{chain}", chainLabel(selectedChain, copy)) })
8919
8965
  ] })
8920
8966
  ] }),
@@ -8935,16 +8981,6 @@ function SendModalTemplate({
8935
8981
  ] })
8936
8982
  ] }),
8937
8983
  step === "form" && /* @__PURE__ */ jsxs(Fragment, { children: [
8938
- chains && onSelectChain && /* @__PURE__ */ jsx(
8939
- ChainSelect,
8940
- {
8941
- label: copy.network,
8942
- value: selectedChain,
8943
- options: chains,
8944
- onChange: onSelectChain,
8945
- disabled: isLoadingBalance
8946
- }
8947
- ),
8948
8984
  !canSendOnChain && /* @__PURE__ */ jsx("div", { className: "pollar-modal-empty", children: copy.sendingUnavailable }),
8949
8985
  canSendOnChain && notReadyReason && /* @__PURE__ */ jsx("div", { className: "pollar-modal-empty", children: notReadyReason }),
8950
8986
  /* @__PURE__ */ jsx(
@@ -9777,7 +9813,19 @@ function SwapModalTemplate({
9777
9813
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header", children: [
9778
9814
  /* @__PURE__ */ jsxs("div", { className: "pollar-send-header-left", children: [
9779
9815
  showBack && /* @__PURE__ */ jsx("button", { type: "button", className: "pollar-modal-close", onClick: onBack, "aria-label": copy.back, children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M10 3 5 8l5 5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
9780
- step === "tx" ? /* @__PURE__ */ jsx(TxStatusHeading, { review: txReview, fallback: title }) : /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: title })
9816
+ /* @__PURE__ */ jsxs("div", { className: "pollar-title-row", children: [
9817
+ step === "tx" ? /* @__PURE__ */ jsx(TxStatusHeading, { review: txReview, fallback: title }) : /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: title }),
9818
+ /* @__PURE__ */ jsx(
9819
+ NetworkPill,
9820
+ {
9821
+ value: chain,
9822
+ options: chains,
9823
+ onChange: (value) => onChainChange(value),
9824
+ locked: step === "tx",
9825
+ disabled: configLoading || isLoadingData
9826
+ }
9827
+ )
9828
+ ] })
9781
9829
  ] }),
9782
9830
  !isInProgress && /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header-actions", children: [
9783
9831
  step === "form" && /* @__PURE__ */ jsx(
@@ -9797,20 +9845,6 @@ function SwapModalTemplate({
9797
9845
  ] }),
9798
9846
  step === "form" && !configLoading && swapUnavailable && /* @__PURE__ */ jsx("div", { className: "pollar-modal-error", children: copy.unavailable }),
9799
9847
  step === "form" && !swapUnavailable && /* @__PURE__ */ jsxs(Fragment, { children: [
9800
- chains.length > 1 && /* @__PURE__ */ jsxs("label", { className: "pollar-swap-route-wrap pollar-swap-chain-wrap", children: [
9801
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: copy.network }),
9802
- /* @__PURE__ */ jsx(
9803
- PollarSelect,
9804
- {
9805
- className: "pollar-swap-route-pill",
9806
- "aria-label": copy.network,
9807
- value: chain,
9808
- disabled: configLoading || isLoadingData,
9809
- onChange: (value) => onChainChange(value),
9810
- options: chains.map((c) => ({ value: c, label: CHAIN_LABELS[c] }))
9811
- }
9812
- )
9813
- ] }),
9814
9848
  destinations.length > 1 && /* @__PURE__ */ jsxs("label", { className: "pollar-swap-route-wrap pollar-swap-chain-wrap", children: [
9815
9849
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: copy.receiveOn }),
9816
9850
  /* @__PURE__ */ jsx(
@@ -9821,7 +9855,11 @@ function SwapModalTemplate({
9821
9855
  value: destination,
9822
9856
  disabled: configLoading || isLoadingData,
9823
9857
  onChange: (value) => onDestinationChange?.(value),
9824
- options: destinations.map((c) => ({ value: c, label: `${copy.receiveOn} ${CHAIN_LABELS[c]}` }))
9858
+ options: destinations.map((c) => ({
9859
+ value: c,
9860
+ label: `${copy.receiveOn} ${CHAIN_LABELS[c]}`,
9861
+ icon: /* @__PURE__ */ jsx(ChainLogo, { chain: c })
9862
+ }))
9825
9863
  }
9826
9864
  )
9827
9865
  ] }),
@@ -9859,7 +9897,7 @@ function SwapModalTemplate({
9859
9897
  /* @__PURE__ */ jsxs("span", { className: "pollar-swap-balance", children: [
9860
9898
  copy.balance,
9861
9899
  " ",
9862
- formatAmount2(selectedSell?.available)
9900
+ formatAmount2(sellOptions.some((o) => assetOptionKey(o) === sellKey) ? selectedSell?.available : void 0)
9863
9901
  ] }),
9864
9902
  /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: "\xB7" }),
9865
9903
  /* @__PURE__ */ jsx(
@@ -10295,7 +10333,10 @@ function SwapModal({ onClose, initial }) {
10295
10333
  (o) => optKey(o) !== buyKeyOfSell || optKey(o) === (selectedBuy ? optKey(selectedBuy) : "")
10296
10334
  );
10297
10335
  useEffect(() => {
10298
- if (sellOptions.length === 0) return;
10336
+ if (sellOptions.length === 0) {
10337
+ if (selectedSell && !isLoadingData) setSelectedSell(null);
10338
+ return;
10339
+ }
10299
10340
  const seeded = byCode(sellOptions, sellSeed.current);
10300
10341
  if (seeded) {
10301
10342
  sellSeed.current = void 0;
@@ -10305,9 +10346,12 @@ function SwapModal({ onClose, initial }) {
10305
10346
  if (!selectedSell || !sellOptions.some((o) => optKey(o) === optKey(selectedSell))) {
10306
10347
  setSelectedSell(sellOptions[0]);
10307
10348
  }
10308
- }, [sellOptions, selectedSell]);
10349
+ }, [sellOptions, selectedSell, isLoadingData]);
10309
10350
  useEffect(() => {
10310
- if (buyOptions.length === 0) return;
10351
+ if (buyOptions.length === 0) {
10352
+ if (selectedBuy && !isLoadingData) setSelectedBuy(null);
10353
+ return;
10354
+ }
10311
10355
  const seeded = byCode(buyOptions, buySeed.current);
10312
10356
  if (seeded) {
10313
10357
  buySeed.current = void 0;
@@ -10317,7 +10361,7 @@ function SwapModal({ onClose, initial }) {
10317
10361
  if (!selectedBuy || !buyOptions.some((o) => optKey(o) === optKey(selectedBuy))) {
10318
10362
  setSelectedBuy(buyOptions[0]);
10319
10363
  }
10320
- }, [buyOptions, selectedBuy]);
10364
+ }, [buyOptions, selectedBuy, isLoadingData]);
10321
10365
  function addCustomToken(code, issuer) {
10322
10366
  const c = code.trim().toUpperCase();
10323
10367
  const i = issuer.trim();
@@ -11835,7 +11879,23 @@ function EarnModal({ onClose, initial }) {
11835
11879
  }),
11836
11880
  fallback: title
11837
11881
  }
11838
- ) : /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: title })
11882
+ ) : /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: title }),
11883
+ /* @__PURE__ */ jsx(
11884
+ NetworkPill,
11885
+ {
11886
+ value: earnChain,
11887
+ options: networks,
11888
+ locked: step === "tx",
11889
+ onChange: (n) => {
11890
+ if (n === earnChain) return;
11891
+ setEarnChain(n);
11892
+ setOpportunityId("");
11893
+ setAmount("");
11894
+ setFormError("");
11895
+ },
11896
+ language
11897
+ }
11898
+ )
11839
11899
  ] }),
11840
11900
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header-actions", children: [
11841
11901
  step === "form" && !earnUnavailable && !smartUnsupported && /* @__PURE__ */ jsx(
@@ -11903,32 +11963,6 @@ function EarnModal({ onClose, initial }) {
11903
11963
  }
11904
11964
  )
11905
11965
  ] }),
11906
- networks.length > 1 && /* @__PURE__ */ jsxs("div", { className: "pollar-send-field", children: [
11907
- /* @__PURE__ */ jsx("span", { className: "pollar-send-label", children: copy.network }),
11908
- /* @__PURE__ */ jsx("div", { className: "pollar-tabs pollar-earn-networks", role: "radiogroup", "aria-label": copy.network, children: networks.map((n) => /* @__PURE__ */ jsxs(
11909
- "button",
11910
- {
11911
- type: "button",
11912
- role: "radio",
11913
- "aria-checked": earnChain === n,
11914
- className: "pollar-tab pollar-earn-network",
11915
- "data-active": earnChain === n,
11916
- "data-chain": n,
11917
- onClick: () => {
11918
- if (n === earnChain) return;
11919
- setEarnChain(n);
11920
- setOpportunityId("");
11921
- setAmount("");
11922
- setFormError("");
11923
- },
11924
- children: [
11925
- /* @__PURE__ */ jsx(ChainLogo, { chain: n }),
11926
- reviewCopy.chains[n]
11927
- ]
11928
- },
11929
- n
11930
- )) })
11931
- ] }),
11932
11966
  !onSolana && providers && providers.length > 1 && /* @__PURE__ */ jsxs("div", { className: "pollar-send-field", children: [
11933
11967
  /* @__PURE__ */ jsx("label", { className: "pollar-send-label", children: copy.provider }),
11934
11968
  /* @__PURE__ */ jsx(
@@ -15475,7 +15509,10 @@ function TxHistoryModalTemplate({
15475
15509
  onClick: (e) => e.stopPropagation(),
15476
15510
  children: [
15477
15511
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header", children: [
15478
- /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
15512
+ /* @__PURE__ */ jsxs("div", { className: "pollar-title-row", children: [
15513
+ /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
15514
+ /* @__PURE__ */ jsx(NetworkPill, { value: selectedChain, options: chains, onChange: onSelectChain, disabled: isLoading })
15515
+ ] }),
15479
15516
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header-actions", children: [
15480
15517
  /* @__PURE__ */ jsx(
15481
15518
  "button",
@@ -15512,7 +15549,6 @@ function TxHistoryModalTemplate({
15512
15549
  /* @__PURE__ */ jsx("button", { className: "pollar-modal-close", onClick: onClose, "aria-label": copy.close, children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M2 2l12 12M14 2L2 14", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) })
15513
15550
  ] })
15514
15551
  ] }),
15515
- /* @__PURE__ */ jsx(ChainSelect, { label: copy.network, value: selectedChain, options: chains, onChange: onSelectChain, disabled: isLoading }),
15516
15552
  walletAddress && /* @__PURE__ */ jsxs("div", { className: "pollar-address-row", children: [
15517
15553
  /* @__PURE__ */ jsx("span", { className: "pollar-address", children: cropAddress(walletAddress) }),
15518
15554
  /* @__PURE__ */ jsx(CopyButton, { value: walletAddress, label: copy.copyWalletAddress })
@@ -15821,7 +15857,10 @@ function WalletBalanceModalTemplate({
15821
15857
  return /* @__PURE__ */ jsxs("div", { className: "pollar-modal-card pollar-bal-modal", "data-theme": theme, style: cssVars, onClick: (e) => e.stopPropagation(), children: [
15822
15858
  isLoading && data && /* @__PURE__ */ jsx(BusyOverlay, { label: copy.refreshing }),
15823
15859
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header", children: [
15824
- /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
15860
+ /* @__PURE__ */ jsxs("div", { className: "pollar-title-row", children: [
15861
+ /* @__PURE__ */ jsx("h2", { className: "pollar-modal-title", children: copy.title }),
15862
+ chains && onSelectChain && /* @__PURE__ */ jsx(NetworkPill, { value: selectedChain, options: chains, onChange: onSelectChain, disabled: isLoading })
15863
+ ] }),
15825
15864
  /* @__PURE__ */ jsxs("div", { className: "pollar-modal-header-actions", children: [
15826
15865
  /* @__PURE__ */ jsx(
15827
15866
  "button",
@@ -15838,16 +15877,6 @@ function WalletBalanceModalTemplate({
15838
15877
  /* @__PURE__ */ jsx("button", { type: "button", className: "pollar-modal-close", onClick: onClose, "aria-label": copy.close, children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M2 2l12 12M14 2L2 14", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) })
15839
15878
  ] })
15840
15879
  ] }),
15841
- chains && onSelectChain && /* @__PURE__ */ jsx(
15842
- ChainSelect,
15843
- {
15844
- label: copy.network,
15845
- value: selectedChain,
15846
- options: chains,
15847
- onChange: onSelectChain,
15848
- disabled: isLoading
15849
- }
15850
- ),
15851
15880
  walletAddress && /* @__PURE__ */ jsxs("div", { className: "pollar-address-row", children: [
15852
15881
  /* @__PURE__ */ jsx("span", { className: "pollar-address", children: cropAddress(walletAddress) }),
15853
15882
  /* @__PURE__ */ jsx(CopyButton, { value: walletAddress, label: copy.copyWalletAddress })