import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';

import Icon from 'components/icons/Icon';

class LoginSuccessfulPage extends Component {
  static propTypes = {
    dispatch: PropTypes.func.isRequired,
  };

  render () {
    const baseClass = 'login-success';
    return (
      <div className={baseClass}>
        <Icon name="success-check" className={`${baseClass}__icon`} />
        <p className={`${baseClass}__text`}>Login successful</p>
        <p className={`${baseClass}__sub-text`}>Taking you to the Kolide application...</p>
      </div>
    );
  }
}

const ConnectedComponent = connect()(LoginSuccessfulPage);
export default ConnectedComponent;
