import { nip19 } from 'nostr-tools'; import { useMemo, useState } from 'react'; import { useStorage } from '@libs/storage/provider'; import { EyeOffIcon, EyeOnIcon } from '@shared/icons'; import { useStronghold } from '@stores/stronghold'; export function AccountSettingsScreen() { const { db } = useStorage(); const [privType, setPrivType] = useState('password'); const [nsecType, setNsecType] = useState('password'); const privkey = useStronghold((state) => state.privkey); const nsec = useMemo(() => nip19.nsecEncode(privkey), [privkey]); const showPrivkey = () => { if (privType === 'password') { setPrivType('text'); } else { setPrivType('password'); } }; const showNsec = () => { if (nsecType === 'password') { setNsecType('text'); } else { setNsecType('password'); } }; return (

Account

); }