blob: d1f562efc4ed3441a33f7b67849bef7e9d81497a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import {useMaybeProfileShadow} from '#/state/cache/profile-shadow'
import {useProfileQuery} from '#/state/queries/profile'
import {useSession} from '#/state/session'
export function useCurrentAccountProfile() {
const {currentAccount} = useSession()
const {data: profile} = useProfileQuery({did: currentAccount?.did})
return useMaybeProfileShadow(profile)
}
|