// @flow import { Spotlight } from '@atlaskit/onboarding'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import type { Dispatch } from 'redux'; import { continueOnboarding } from '../actions'; type Props = { /** * Redux dispatch. */ dispatch: Dispatch<*>; }; /** * Email Setting Spotlight Component. */ class EmailSettingSpotlight extends Component { /** * Initializes a new {@code EmailSettingSpotlight} instance. * * @inheritdoc */ constructor(props: Props) { super(props); this._next = this._next.bind(this); } /** * Render function of component. * * @returns {ReactElement} */ render() { return ( The email you enter here will be part of your user profile. ); } _next: (*) => void; /** * Close the spotlight component. * * @returns {void} */ _next() { this.props.dispatch(continueOnboarding()); } } export default connect()(EmailSettingSpotlight);