text: import React, { Component, PropTypes } from 'react';
  import { Link, Route, Switch } from 'react-router-dom';
  import GroupUserCreateContainer from '../containers/GroupUserCreateContainer';
  import GroupResetPasswordContainer from '../containers/GroupResetPasswordContainer';
  import Login from './Login';
  
  export default class GroupAuth extends Component {
    render() {
      const {
        groupname,
        groupSession,
        isWaitingLogin,
        login
      } = this.props;
  
      return (
        <div className="c-group-auth">
          <Switch>
            <Route
              path="/:groupname/users/create"
              component={GroupUserCreateContainer}
            />
            <Route
              path="/:groupname/users/reset_password"
            >
              <GroupResetPasswordContainer
                groupname={groupname}
              />
            </Route>
            <Route>
              <Login
                groupname={groupname}
                groupSession={groupSession}
                login={login}
                isWaitingLogin={isWaitingLogin}
              />
            </Route>
          </Switch>
        </div>
      );
    }
  }
  