const { connect } = require('react-redux'); import { AppState } from '../app.reducer'; import { _ } from '@joplin/lib/locale'; import { clipboard } from 'electron'; import Button from './Button/Button'; type JoplinCloudConfigScreenProps = { inboxEmail: string; }; const JoplinCloudConfigScreen = (props: JoplinCloudConfigScreenProps) => { const copyToClipboard = () => { clipboard.writeText(props.inboxEmail); }; return (

{_('Email to note')}

{_('Any email sent to this address will be converted into a note and added to your collection. The note will be saved into the Inbox notebook')}

{props.inboxEmail}

); }; const mapStateToProps = (state: AppState) => { return { inboxEmail: state.settings['sync.10.inboxEmail'], }; }; export default connect(mapStateToProps)(JoplinCloudConfigScreen);