import { noop } from 'lodash'; import { useDispatch } from 'react-redux'; import { updateTermsOfServicePrivacyModal } from '../../state/ducks/modalDialog'; import { SessionWrapperModal } from '../SessionWrapperModal'; import { SessionButton, SessionButtonShape, SessionButtonType } from '../basic/SessionButton'; export type TermsOfServicePrivacyDialogProps = { show: boolean; }; export function TermsOfServicePrivacyDialog(props: TermsOfServicePrivacyDialogProps) { const { show } = props; const dispatch = useDispatch(); const onClose = () => { dispatch(updateTermsOfServicePrivacyModal(null)); }; if (!show) { return null; } // TODO[epic=ses-900] need to add redux context to initial screens... or at the very least, a separate onboarding redux state return (
{window.i18n('urlOpenBrowser')}
); }