/
navbarHeading.tsx
31 lines (27 loc) · 1.03 KB
/
navbarHeading.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Copyright 2017 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the terms of the LICENSE file distributed with this project.
*/
import classNames from "classnames";
import * as React from "react";
import * as Classes from "../../common/classes";
import { IProps } from "../../common/props";
// allow the empty interface so we can label it clearly in the docs
// tslint:disable-next-line:no-empty-interface
export interface INavbarHeadingProps extends React.HTMLProps<HTMLDivElement>, IProps {
// Empty
}
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class NavbarHeading extends React.PureComponent<React.HTMLProps<HTMLDivElement>, {}> {
public static displayName = "Blueprint2.NavbarHeading";
public render() {
const { children, className, ...htmlProps } = this.props;
return (
<div className={classNames(Classes.NAVBAR_HEADING, className)} {...htmlProps}>
{children}
</div>
);
}
}