import { _ } from '@joplin/lib/locale'; import * as React from 'react'; import bridge from '../services/bridge'; import Button, { ButtonLevel } from './Button/Button'; interface Props { source?: string; primary?: boolean; withLeadIn?: boolean; } const JoplinCloudSignUpCallToAction = (props: Props) => { const source = props.source ?? 'desktop-app'; const onJoplinCloudSignUpClick = async () => { await bridge().openExternal(`https://joplinapp.org/plans/?source=${encodeURIComponent(source)}`); }; if (props.primary) { return
; } return
{props.withLeadIn ? `${_('Don\'t have an account yet?')} ` : null} {_('Sign up to Joplin Cloud')}
; }; export default JoplinCloudSignUpCallToAction;