Download spectrum/src/components/entities/profileCards/user.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 903 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/entities/profileCards/user.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/entities/profileCards/user.js
-
curl -L -o user.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/entities/profileCards/user.js
903 Bytes
| // @flow | |
| import React from 'react'; | |
| import { Link } from 'react-router-dom'; | |
| import type { UserInfoType } from 'shared/graphql/fragments/user/userInfo'; | |
| import { UserAvatar } from 'src/components/avatar'; | |
| import { UserActions } from './components/userActions'; | |
| import { UserMeta } from './components/userMeta'; | |
| import { | |
| ProfileContainer, | |
| CoverPhoto, | |
| RoundProfileAvatarContainer, | |
| } from './style'; | |
| type Props = { | |
| user: UserInfoType, | |
| }; | |
| export const UserProfileCard = (props: Props) => { | |
| const { user } = props; | |
| return ( | |
| <ProfileContainer> | |
| <Link to={`/users/${user.username}`}> | |
| <CoverPhoto src={user.coverPhoto} /> | |
| </Link> | |
| <RoundProfileAvatarContainer> | |
| <UserAvatar showHoverProfile={false} size={60} user={user} /> | |
| </RoundProfileAvatarContainer> | |
| <UserMeta user={user} /> | |
| <UserActions user={user} /> | |
| </ProfileContainer> | |
| ); | |
| }; | |