Newer
Older
import { useStore } from 'nanostores/react'
import React from 'react'
import { hierarchy as hierarchyStore } from '../stores/accounts'
import { BaseProps } from '../types'
const Accounts: React.FC<BaseProps> = ({ className }) => {
const hierarchy = useStore(hierarchyStore)
<h1>All keys</h1>
{hierarchy.map((account) => (
<Key
address={account.address}
genesisHash={account.genesisHash}
name={account.name}
key={account.address}
/>