Files
standardnotes-app-web/app/assets/javascripts/components/Preferences/panes/Security.tsx
Mo fb9bd37d72 feat: privacy prefs (#935)
* chore: move all components into Components dir with pascal case

* feat: privacy prefs

* chore: upgrade deps
2022-03-17 12:19:07 -05:00

29 lines
1.0 KiB
TypeScript

import { WebApplication } from '@/ui_models/application';
import { AppState } from '@/ui_models/app_state';
import { FunctionComponent } from 'preact';
import { PreferencesPane } from '../components';
import { Encryption, PasscodeLock, Protections } from './security-segments';
import { Privacy } from './security-segments/Privacy';
import { TwoFactorAuthWrapper } from './two-factor-auth';
import { MfaProps } from './two-factor-auth/MfaProps';
interface SecurityProps extends MfaProps {
appState: AppState;
application: WebApplication;
}
export const Security: FunctionComponent<SecurityProps> = (props) => (
<PreferencesPane>
<Encryption appState={props.appState} />
<Protections application={props.application} />
<TwoFactorAuthWrapper
mfaProvider={props.mfaProvider}
userProvider={props.userProvider}
/>
<PasscodeLock appState={props.appState} application={props.application} />
{props.appState.enableUnfinishedFeatures && (
<Privacy application={props.application} />
)}
</PreferencesPane>
);