mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-01-11 23:47:55 +00:00
27 lines
849 B
JavaScript
27 lines
849 B
JavaScript
"use strict";
|
|
|
|
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
|
|
|
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
|
|
var React = _interopRequire(require("react"));
|
|
|
|
var classNames = _interopRequire(require("classnames"));
|
|
|
|
var PageHeader = React.createClass({
|
|
displayName: "PageHeader",
|
|
|
|
render: function render() {
|
|
return React.createElement(
|
|
"div",
|
|
_extends({}, this.props, { className: classNames(this.props.className, "page-header") }),
|
|
React.createElement(
|
|
"h1",
|
|
null,
|
|
this.props.children
|
|
)
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = PageHeader; |