Download spectrum/src/components/entities/profileCards/channel.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 927 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/entities/profileCards/channel.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/entities/profileCards/channel.js
-
curl -L -o channel.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/entities/profileCards/channel.js
927 Bytes
| // @flow | |
| import React from 'react'; | |
| import type { ChannelInfoType } from 'shared/graphql/fragments/channel/channelInfo'; | |
| import { ChannelActions } from './components/channelActions'; | |
| import { ChannelMeta } from './components/channelMeta'; | |
| import { ChannelCommunityMeta } from './components/channelCommunityMeta'; | |
| import { ProfileContainer } from './style'; | |
| type Props = { | |
| channel: ChannelInfoType, | |
| hideActions?: boolean, | |
| hideCommunityMeta?: boolean, | |
| }; | |
| export const ChannelProfileCard = (props: Props) => { | |
| const { channel, hideActions, hideCommunityMeta } = props; | |
| return ( | |
| <ProfileContainer data-cy="channel-profile-card"> | |
| {!hideCommunityMeta && <ChannelCommunityMeta channel={channel} />} | |
| <ChannelMeta channel={channel} /> | |
| {!hideActions ? ( | |
| <ChannelActions channel={channel} /> | |
| ) : ( | |
| <div style={{ paddingBottom: '12px' }} /> | |
| )} | |
| </ProfileContainer> | |
| ); | |
| }; | |