Download spectrum/src/components/communitySidebar/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/communitySidebar/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/communitySidebar/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/communitySidebar/index.js
1.02 kB
| // @flow | |
| import React from 'react'; | |
| import { SidebarSection } from 'src/views/community/style'; | |
| import { TeamMembersList } from 'src/views/community/components/teamMembersList'; | |
| import { ChannelsList } from 'src/views/community/components/channelsList'; | |
| import { CommunityProfileCard } from 'src/components/entities'; | |
| import { ErrorBoundary } from 'src/components/error'; | |
| type Props = { | |
| community: Object, | |
| }; | |
| export default ({ community }: Props) => ( | |
| <React.Fragment> | |
| <SidebarSection> | |
| <CommunityProfileCard community={community} /> | |
| </SidebarSection> | |
| <ErrorBoundary> | |
| <SidebarSection> | |
| <ChannelsList id={community.id} communitySlug={community.slug} /> | |
| </SidebarSection> | |
| </ErrorBoundary> | |
| <ErrorBoundary> | |
| <SidebarSection> | |
| <TeamMembersList | |
| community={community} | |
| id={community.id} | |
| first={100} | |
| filter={{ isModerator: true, isOwner: true }} | |
| /> | |
| </SidebarSection> | |
| </ErrorBoundary> | |
| </React.Fragment> | |
| ); | |