import React, {PropTypes} from 'react'; import Link from '../base/Link'; import PromptButton from '../base/PromptButton'; import {trackEvent} from '../../../analytics/index'; const SettingsSync = ({ loggedIn, firstName, handleExit, handleUpdateSetting, handleShowSignup, handleCancelAccount, handleLogout, handleReset, }) => (

Cloud Sync and Backup

{loggedIn ? [

Hi {firstName}! Thanks for signing up for Insomnia Plus.

,

{ handleExit(); handleCancelAccount(); }}> Cancel Subscription {" "} Reset Remote Data {" "} { handleExit(); await handleLogout(); }}> Log Out

] : [

Insomnia Plus helps you rest easy by keeping your workspaces securely backed up and synced across all of your devices.

,

Upgrade today to start enjoying {" "} all of the benefits, while also helping support my continuous effort of making Insomnia awesome!

,

,

$5 per month or $50 per year
14-day trial (cancel at any time)

]}
); SettingsSync.propTypes = { loggedIn: PropTypes.bool.isRequired, firstName: PropTypes.string.isRequired, handleExit: PropTypes.func.isRequired, handleUpdateSetting: PropTypes.func.isRequired, handleShowSignup: PropTypes.func.isRequired, handleCancelAccount: PropTypes.func.isRequired, handleLogout: PropTypes.func.isRequired, handleReset: PropTypes.func.isRequired, }; export default SettingsSync;