Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
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;