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