UNPKG

glass-app-manager

Version:

Informatica's Glass Framework CLI for bootstrapping

30 lines (25 loc) 960 B
//@flow import * as React from "react"; import classNames from "classnames"; type InternalProps = {| toggleCollapse: () => void, |}; type Props = { buttonGroup?: React.Node, children: React.Node, className?: string, productName: string, toggleCollapse?: empty, }; export default (props: { ...Props, ...InternalProps }) => { const { buttonGroup, children, className, productName, toggleCollapse, ...rest } = props; return ( <header className={classNames("shell__header", className)} {...rest}> <i onClick={toggleCollapse} className="icon shell__header__close-button" /> <span className="shell__header__infa-logo" title="Informatica" /> <h1 className="shell__header__product-name">{productName}</h1> {children} {buttonGroup ? <span className="shell__header__button-group">{buttonGroup}</span> : null} </header> ); };