Download discord-react-clone/src/components/Chat/NewMessageWrapper.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/Chat/NewMessageWrapper.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/Chat/NewMessageWrapper.js
-
curl -L -o NewMessageWrapper.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/Chat/NewMessageWrapper.js
587 Bytes
| import React from 'react'; | |
| import styled from 'styled-components'; | |
| import NewMessageForm from './NewMessageForm'; | |
| const StyledNewMessageWrapper = styled.div` | |
| margin: 0 20px; | |
| `; | |
| const StyledContainer = styled.div` | |
| border-top: 1px solid hsla(0, 0%, 100%, 0.06); | |
| margin-bottom: 30px; | |
| padding-top: 20px; | |
| `; | |
| const NewMessageWrapper = ({ channelName, isPrivate }) => ( | |
| <StyledNewMessageWrapper> | |
| <StyledContainer> | |
| <NewMessageForm channelName={channelName} isPrivate={isPrivate} /> | |
| </StyledContainer> | |
| </StyledNewMessageWrapper> | |
| ); | |
| export default NewMessageWrapper; | |