UNPKG

804 BJSXView Raw
1/**
2 * Header for dialog.
3 * @constructor ApDialogHeader
4 */
5
6'use strict'
7
8import React, {PropTypes as types} from 'react'
9import classnames from 'classnames'
10
11import {ApTouchable} from 'apeman-react-touchable'
12import {ApIcon} from 'apeman-react-icon'
13
14/** @lends ApDialogHeader */
15const ApDialogHeader = React.createClass({
16
17 // --------------------
18 // Specs
19 // --------------------
20
21 propTypes: {},
22
23 mixins: [],
24
25 statics: {},
26
27 getInitialState () {
28 return {}
29 },
30
31 getDefaultProps () {
32 return {}
33 },
34
35 render () {
36 const s = this,
37 {props} = s;
38 return (
39 <div className={ classnames('ap-dialog-header', props.className) }
40 style={ Object.assign({}, props.style) }>
41 { props.children }
42 </div>
43 )
44 }
45})
46
47module.exports = ApDialogHeader;
\No newline at end of file