Download tabler-react/src/components/Page/Page.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 861 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/Page.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/Page.react.js
-
curl -L -o Page.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Page/Page.react.js
861 Bytes
| // @flow | |
| import * as React from "react"; | |
| import cn from "classnames"; | |
| import PageMain from "./PageMain.react"; | |
| import PageContent from "./PageContent.react"; | |
| import PageHeader from "./PageHeader.react"; | |
| import PageContentWithSidebar from "./PageContentWithSidebar.react"; | |
| import PageCard from "./PageCard.react"; | |
| import PageTitle from "./PageTitle.react"; | |
| import PageMapHeader from "./PageMapHeader.react"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +className?: string, | |
| |}; | |
| function Page({ className, children }: Props): React.Node { | |
| const classes = cn("page", className); | |
| return <div className={classes}>{children}</div>; | |
| } | |
| Page.Main = PageMain; | |
| Page.Content = PageContent; | |
| Page.Header = PageHeader; | |
| Page.ContentWithSidebar = PageContentWithSidebar; | |
| Page.Card = PageCard; | |
| Page.Title = PageTitle; | |
| Page.MapHeader = PageMapHeader; | |
| export default Page; | |