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