import { WebApplication } from '@/ui_models/application'; import { FC } from 'react'; type Props = { application: WebApplication; protectionsDisabledUntil: string | null; }; const Protections: FC = ({ application, protectionsDisabledUntil }) => { const enableProtections = () => { application.clearProtectionSession(); }; return (
Protections
{protectionsDisabledUntil && (
Protections are disabled until {protectionsDisabledUntil}
)} {!protectionsDisabledUntil && (
Protections are enabled
)}

Actions like viewing protected notes, exporting decrypted backups, or revoking an active session, require additional authentication like entering your account password or application passcode.

{protectionsDisabledUntil && (
)}
); } export default Protections;