import { ViewControllerManager } from '@/Services/ViewControllerManager' type Props = { viewControllerManager: ViewControllerManager onViewNote: () => void hasProtectionSources: boolean } const ProtectedNoteOverlay = ({ viewControllerManager, 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}