Download spectrum/src/components/inboxThread/activity.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/inboxThread/activity.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/inboxThread/activity.js
-
curl -L -o activity.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/inboxThread/activity.js
694 Bytes
| // @flow | |
| import * as React from 'react'; | |
| import type { GetThreadType } from 'shared/graphql/queries/thread/getThread'; | |
| import MessageCount from './messageCount'; | |
| import { ThreadActivityWrapper } from './style'; | |
| type Props = { | |
| currentUser: ?Object, | |
| thread: GetThreadType, | |
| active: boolean, | |
| }; | |
| class ThreadActivity extends React.Component<Props> { | |
| render() { | |
| const { thread, active, currentUser } = this.props; | |
| if (!thread) return null; | |
| return ( | |
| <ThreadActivityWrapper> | |
| <MessageCount | |
| currentUser={currentUser} | |
| thread={thread} | |
| active={active} | |
| /> | |
| </ThreadActivityWrapper> | |
| ); | |
| } | |
| } | |
| export default ThreadActivity; | |