import { AppState } from '@/ui_models/app_state'; import { toDirective } from './utils'; type Props = { appState: AppState; onViewNote: () => void }; function NoProtectionsNoteWarning({ appState, onViewNote }: Props) { return (

This note is protected

Add a passcode or create an account to require authentication to view this note.

); } export const NoProtectionsdNoteWarningDirective = toDirective( NoProtectionsNoteWarning, { onViewNote: '&', } );