@sky-mavis/tanto-widget
Version:
Tanto Widget
47 lines • 1.39 kB
JavaScript
import {jsx}from'@emotion/react/jsx-runtime';import {Route}from'../types/route.mjs';import {ConnectInjector}from'../views/Connect/ConnectInjector.mjs';import {ConnectWC}from'../views/Connect/ConnectWC.mjs';import {Profile}from'../views/Profile/Profile.mjs';import {WalletList}from'../views/WalletList/WalletList.mjs';const viewConfigs = {
[Route.WALLETS]: {
route: Route.WALLETS,
showBackButton: false,
content: jsx(WalletList, {}),
title: jsx("div", {
css: {
flex: 1,
display: 'flex',
justifyContent: 'center',
alignItems: 'flex-end',
height: '100%',
paddingBottom: 6,
paddingTop: 12
},
children: jsx("p", {
css: theme => ({
fontSize: '0.55em',
fontWeight: 500,
color: theme.mutedText,
textTransform: 'uppercase',
textAlign: 'center'
}),
children: "Powered by Ronin Wallet"
})
})
},
[Route.CONNECT_INJECTOR]: {
route: Route.CONNECT_INJECTOR,
content: jsx(ConnectInjector, {})
},
[Route.CONNECT_WC]: {
route: Route.CONNECT_WC,
content: jsx(ConnectWC, {})
},
[Route.PROFILE]: {
route: Route.PROFILE,
content: jsx(Profile, {}),
title: jsx("p", {
css: {
width: '100%',
textAlign: 'center'
},
children: "Connected"
})
}
};export{viewConfigs};