import PageHeader from '@/components/PageHeader' import SettingsStore from '@/store/SettingsStore' import { wallet } from '@/utils/WalletUtil' import { Card, Divider, Row, Switch, Text, useTheme } from '@nextui-org/react' import { useTheme as useNextTheme } from 'next-themes' import { Fragment } from 'react' import { useSnapshot } from 'valtio' export default function SettingsPage() { const { setTheme } = useNextTheme() const { isDark, type } = useTheme() const { testNets } = useSnapshot(SettingsStore.state) return ( Settings Mnemonic {wallet.mnemonic.phrase} Warning: mnemonic is provided for development purposes only and should not be used elsewhere! Testnets {testNets ? 'Enabled' : 'Disabled'} Theme setTheme(e.target.checked ? 'dark' : 'light')} /> {type} ) }