Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
// @flow
import * as React from "react";
import PageTitle from "./PageTitle.react";
import PageSubTitle from "./PageSubTitle.react";
import PageOptions from "./PageOptions.react";
type Props = {|
+children?: React.Node,
+title?: string,
+subTitle?: string,
+options?: React.Node,
|};
function PageHeader({ children, title, subTitle, options }: Props): React.Node {
return (
<div className="page-header">
{title && <PageTitle>{title}</PageTitle>}
{subTitle && <PageSubTitle>{subTitle}</PageSubTitle>}
{options && <PageOptions>{options}</PageOptions>}
{children}
</div>
);
}
PageHeader.displayName = "Page.Header";
export default PageHeader;