Download tabler-react/src/components/Page/PageContent.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 759 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/PageContent.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/PageContent.react.js
-
curl -L -o PageContent.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/PageContent.react.js
759 Bytes
| // @flow | |
| import * as React from "react"; | |
| import cn from "classnames"; | |
| import { Container } from "../"; | |
| import PageHeader from "./PageHeader.react"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +className?: string, | |
| +title?: string, | |
| +subTitle?: string, | |
| +options?: React.Node, | |
| |}; | |
| function PageContent({ | |
| className, | |
| children, | |
| title, | |
| subTitle, | |
| options, | |
| }: Props): React.Node { | |
| const classes = cn("page-content", className); | |
| return ( | |
| <div className={classes}> | |
| <Container> | |
| {(title || subTitle || options) && ( | |
| <PageHeader title={title} subTitle={subTitle} options={options} /> | |
| )} | |
| {children} | |
| </Container> | |
| </div> | |
| ); | |
| } | |
| PageContent.displayName = "Page.Content"; | |
| export default PageContent; | |