// @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 (
{title && {title}} {subTitle && {subTitle}} {options && {options}} {children}
); } PageHeader.displayName = "Page.Header"; export default PageHeader;