mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 15:19:39 +03:00
70ff2bc9cd
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
20 lines
466 B
JavaScript
20 lines
466 B
JavaScript
/* A dummy React component which we use for stubbing out app-level components
|
|
*/
|
|
|
|
import React from 'react';
|
|
import createReactClass from 'create-react-class';
|
|
|
|
module.exports = function(opts) {
|
|
opts = opts || {};
|
|
if (!opts.displayName) {
|
|
opts.displayName = 'StubComponent';
|
|
}
|
|
|
|
if (!opts.render) {
|
|
opts.render = function() {
|
|
return <div>{ this.displayName }</div>;
|
|
};
|
|
}
|
|
|
|
return createReactClass(opts);
|
|
};
|