import classNames from "classnames" ; import * as React from "react" ; import { polyfill } from "react-lifecycles-compat" ; import { AbstractPureComponent2 , Alignment , Classes } from "../../common" ; import { DISPLAYNAME_PREFIX , HTMLDivProps , Props } from "../../common/props" ; export type NavbarGroupProps = INavbarGroupProps ; deprecated export interface INavbarGroupProps extends Props , HTMLDivProps { default align ? : Alignment ; } @ polyfill export class NavbarGroup extends AbstractPureComponent2 < NavbarGroupProps > { public static displayName = `${ DISPLAYNAME_PREFIX }.NavbarGroup` ; public static defaultProps : NavbarGroupProps = { align : Alignment . LEFT , } ; public render ( ) { const { align , children , className , ... htmlProps } = this . props ; const classes = classNames ( Classes . NAVBAR_GROUP , Classes . alignmentClass ( align ) , className ) ; return ( < div className = { classes } { ... htmlProps } > { children } < /div>); } }