Download spectrum/src/components/entities/profileCards/community.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/entities/profileCards/community.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/entities/profileCards/community.js
-
curl -L -o community.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/entities/profileCards/community.js
1.06 kB
| // @flow | |
| import React from 'react'; | |
| import { Link } from 'react-router-dom'; | |
| import { CommunityAvatar } from 'src/components/avatar'; | |
| import { CommunityActions } from './components/communityActions'; | |
| import { CommunityMeta } from './components/communityMeta'; | |
| import { ProfileContainer, CoverPhoto, ProfileAvatarContainer } from './style'; | |
| import type { CommunityInfoType } from 'shared/graphql/fragments/community/communityInfo'; | |
| type Props = { | |
| community: CommunityInfoType, | |
| }; | |
| export const CommunityProfileCard = (props: Props) => { | |
| const { community } = props; | |
| return ( | |
| <ProfileContainer data-cy="community-profile-card"> | |
| <Link to={`/${community.slug}`}> | |
| <CoverPhoto src={community.coverPhoto} /> | |
| </Link> | |
| <ProfileAvatarContainer> | |
| <CommunityAvatar | |
| showHoverProfile={false} | |
| size={60} | |
| community={community} | |
| /> | |
| </ProfileAvatarContainer> | |
| <CommunityMeta community={community} /> | |
| <CommunityActions community={community} /> | |
| </ProfileContainer> | |
| ); | |
| }; | |