50fd39e926
* first iteration * finish implementation * finish * fix pr comments * fix: added Card Title to Overview --------- Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
10 lines
291 B
TypeScript
10 lines
291 B
TypeScript
import useAccountId from 'hooks/useAccountId'
|
|
import useStore from 'store'
|
|
|
|
export default function useCurrentAccount(): Account | undefined {
|
|
const accountId = useAccountId()
|
|
|
|
const accounts = useStore((s) => s.accounts)
|
|
return accounts?.find((account) => account.id === accountId)
|
|
}
|