@@ -17,57 +17,60 @@ interface Tool {
1717 path : string ;
1818}
1919
20- export const tools = ( ) => {
20+ export const useTools = ( ) => {
2121 const { activeNetwork } = useNetwork ( ) ;
22- const network = networks . find ( ( n ) => n . networkId === activeNetwork . value ) ;
2322
24- const val : Tool [ ] = [ ] ;
23+ return computed ( ( ) => {
24+ const network = networks . find ( ( n ) => n . networkId === activeNetwork . value ) ;
2525
26- if ( network ?. nftIndexer )
27- val . push ( {
28- title : "ARC200 Assets" ,
29- subtitle : "View and send contract-based assets" ,
30- icon : Coins ,
31- path : "/arc200" ,
32- } ) ;
26+ const val : Tool [ ] = [ ] ;
3327
34- if ( network ?. inboxRouter || network ?. name === "LocalNet" )
35- val . push ( {
36- title : "Asset Inbox " ,
37- subtitle : "View and claim assets sent to your inbox. " ,
38- icon : Download ,
39- path : "/inbox " ,
40- } ) ;
28+ if ( network ?. nftIndexer )
29+ val . push ( {
30+ title : "ARC200 Assets " ,
31+ subtitle : "View and send contract-based assets " ,
32+ icon : Coins ,
33+ path : "/arc200 " ,
34+ } ) ;
4135
42- val . push (
43- {
44- title : "Participation Keys" ,
45- subtitle : "For node runners. Manage participation keys." ,
46- icon : Handshake ,
47- path : "/keyreg" ,
48- } ,
49- {
50- title : "Opt-Out" ,
51- subtitle :
52- "Manage your minimum balance by opting out of assets and applications (smart contracts)." ,
53- icon : LogOut ,
54- path : "/optout" ,
55- } ,
56- {
57- title : "Burn Assets" ,
58- subtitle : "Burn ASAs or NFTs. Trustlessly. Permenantly." ,
59- icon : Flame ,
60- path : "/burn" ,
61- }
62- ) ;
36+ if ( network ?. inboxRouter || network ?. name === "LocalNet" )
37+ val . push ( {
38+ title : "Asset Inbox" ,
39+ subtitle : "View and claim assets sent to your inbox." ,
40+ icon : Download ,
41+ path : "/inbox" ,
42+ } ) ;
6343
64- if ( network ?. vanityId )
65- val . push ( {
66- title : "Vanity Marketplace" ,
67- subtitle : "Buy and sell vanity addresses." ,
68- icon : CaseUpper ,
69- path : "/vanity" ,
70- } ) ;
44+ val . push (
45+ {
46+ title : "Participation Keys" ,
47+ subtitle : "For node runners. Manage participation keys." ,
48+ icon : Handshake ,
49+ path : "/keyreg" ,
50+ } ,
51+ {
52+ title : "Opt-Out" ,
53+ subtitle :
54+ "Manage your minimum balance by opting out of assets and applications (smart contracts)." ,
55+ icon : LogOut ,
56+ path : "/optout" ,
57+ } ,
58+ {
59+ title : "Burn Assets" ,
60+ subtitle : "Burn ASAs or NFTs. Trustlessly. Permenantly." ,
61+ icon : Flame ,
62+ path : "/burn" ,
63+ }
64+ ) ;
7165
72- return val ;
66+ if ( network ?. vanityId )
67+ val . push ( {
68+ title : "Vanity Marketplace" ,
69+ subtitle : "Buy and sell vanity addresses." ,
70+ icon : CaseUpper ,
71+ path : "/vanity" ,
72+ } ) ;
73+
74+ return val ;
75+ } ) ;
7376} ;
0 commit comments