UNPKG

preact-material-design

Version:
31 lines 1.17 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { h, Component } from 'preact'; var Toolbar = (function (_super) { __extends(Toolbar, _super); function Toolbar() { return _super !== null && _super.apply(this, arguments) || this; } Toolbar.prototype.render = function () { var _a = this.props, children = _a.children, type = _a.type; var toolbarClasses = [ 'pmd-toolbar', "pmd-toolbar--" + type ]; return (h("div", { class: toolbarClasses.join(' ') }, children)); }; return Toolbar; }(Component)); export { Toolbar }; Toolbar.defaultProps = { type: 'app', }; //# sourceMappingURL=Toolbar.js.map