import { AppState } from '@/ui_models/app_state'; import { toDirective } from './utils'; type Props = { appState: AppState; onViewNote: () => void; hasProtectionSources: boolean; }; function ProtectedNoteOverlay({ appState, onViewNote, hasProtectionSources, }: Props) { const instructionText = hasProtectionSources ? 'Authenticate to view this note.' : 'Add a passcode or create an account to require authentication to view this note.'; return (
{instructionText}