import { AppState } from '@/UIModels/AppState' type Props = { appState: AppState onViewNote: () => void hasProtectionSources: boolean } export 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 (

This note is protected

{instructionText}

{!hasProtectionSources && ( )}
) }