mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 21:52:08 +02:00
29 lines
660 B
JavaScript
29 lines
660 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
import { getLangText } from '../../utils/lang_utils.js';
|
|
|
|
|
|
let AccordionListItemTableToggle = React.createClass({
|
|
propTypes: {
|
|
className: React.PropTypes.string,
|
|
onClick: React.PropTypes.func,
|
|
message: React.PropTypes.oneOfType([
|
|
React.PropTypes.string,
|
|
React.PropTypes.element
|
|
])
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<span
|
|
className={this.props.className}
|
|
onClick={this.props.onClick}>
|
|
{this.props.message}
|
|
</span>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default AccordionListItemTableToggle;
|