Download discord-react-clone/src/components/ContentHeader.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/ContentHeader.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/ContentHeader.js
-
curl -L -o ContentHeader.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/ContentHeader.js
539 Bytes
| import React from 'react'; | |
| import styled from 'styled-components'; | |
| const StyledContentHeader = styled.div` | |
| height: 48px; | |
| flex: 0 0 auto; | |
| padding: 0 8px 0 12px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 2px 0 rgba(0, 0, 0, 0.06); | |
| color: #fff; | |
| z-index: 99; | |
| `; | |
| const ContentHeader = ({ content, rightContent }) => ( | |
| <StyledContentHeader> | |
| <div>{content}</div> | |
| <div>{rightContent}</div> | |
| </StyledContentHeader> | |
| ); | |
| export default ContentHeader; | |