mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-08 02:36:16 +00:00
feat(rate): support multi-currency forced rate list
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{t as n}from"./useRouter-DtTm7XkK.js";import{g as r,n as i,t as a}from"./useStore-CupyIEEP.js";import{n as o,t as s}from"./matchContext-BFCdcHzo.js";var c=e(t(),1),l={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function u(e){let t=n(),u=c.useContext(e.from?s:o),d=e.from??u,f=d?e.from?t.stores.getRouteMatchStore(d):t.stores.matchStores.get(d):void 0,p=c.useRef(void 0);return a(f??l,n=>{if((e.shouldThrow??!0)&&!n&&i(),n===void 0)return;let a=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=r(p.current,a);return p.current=e,e}return a})}function d(e){return u({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}export{u as n,d as t};
|
||||
Reference in New Issue
Block a user