| 28 | }; |
| 29 | |
| 30 | const UserDetails = ({ user }) => { |
| 31 | const auth = useAuth(); |
| 32 | |
| 33 | return ( |
| 34 | <> |
| 35 | <CardSection title="Displayname">{user.displayName}</CardSection> |
| 36 | <CardSection title="Providers"> |
| 37 | <ul> |
| 38 | {user.providerData?.map(profile => ( |
| 39 | <li key={profile?.providerId}>{profile?.providerId}</li> |
| 40 | ))} |
| 41 | </ul> |
| 42 | </CardSection> |
| 43 | <CardSection title="Sign Out"> |
| 44 | <WideButton label="Sign Out" onClick={() => signOut(auth)} /> |
| 45 | </CardSection> |
| 46 | </> |
| 47 | ); |
| 48 | }; |
| 49 | |
| 50 | const SignInForm = () => { |
| 51 | const auth = useAuth(); |