summaryrefslogtreecommitdiffstats
path: root/webapp/components/integrations/components/integration_option.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/integrations/components/integration_option.jsx')
-rw-r--r--webapp/components/integrations/components/integration_option.jsx39
1 files changed, 39 insertions, 0 deletions
diff --git a/webapp/components/integrations/components/integration_option.jsx b/webapp/components/integrations/components/integration_option.jsx
new file mode 100644
index 000000000..483e6a888
--- /dev/null
+++ b/webapp/components/integrations/components/integration_option.jsx
@@ -0,0 +1,39 @@
+// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import React from 'react';
+
+import {Link} from 'react-router/es6';
+
+export default class IntegrationOption extends React.Component {
+ static get propTypes() {
+ return {
+ image: React.PropTypes.string.isRequired,
+ title: React.PropTypes.node.isRequired,
+ description: React.PropTypes.node.isRequired,
+ link: React.PropTypes.string.isRequired
+ };
+ }
+
+ render() {
+ const {image, title, description, link} = this.props;
+
+ return (
+ <Link
+ to={link}
+ className='integration-option'
+ >
+ <img
+ className='integration-option__image'
+ src={image}
+ />
+ <div className='integration-option__title'>
+ {title}
+ </div>
+ <div className='integration-option__description'>
+ {description}
+ </div>
+ </Link>
+ );
+ }
+}