user
property.
useUser
hook returns the current user object, which includes the name and email properties. If no user is currently logged in, the hook will return null.
You can use the useUser
hook anywhere within a component tree that is wrapped in the UseawardsProvider. If there is no UseawardsProvider in the tree, the useUser hook will throw an error.