Download tabler-react/src/components/Comment/CommentReply.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Comment/CommentReply.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Comment/CommentReply.react.js
-
curl -L -o CommentReply.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Comment/CommentReply.react.js
600 Bytes
| // @flow | |
| import * as React from "react"; | |
| import Media from "../Media"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +className?: string, | |
| +avatarURL?: string, | |
| +name?: string, | |
| +date?: string, | |
| +text?: string, | |
| |}; | |
| function CommentReply({ | |
| className, | |
| children, | |
| avatarURL, | |
| name, | |
| date, | |
| text, | |
| }: Props): React.Node { | |
| return ( | |
| <Media.ListItem className={className}> | |
| <Media.Object avatar objectURL={avatarURL} className="mr-4" /> | |
| <Media.Body> | |
| <strong>{name}: </strong> | |
| {text} | |
| </Media.Body> | |
| </Media.ListItem> | |
| ); | |
| } | |
| export default CommentReply; | |