import { ViewControllerManager } from '@/Services/ViewControllerManager' type Props = { viewControllerManager: ViewControllerManager onViewItem: () => void hasProtectionSources: boolean itemType: 'note' | 'file' } const ProtectedItemOverlay = ({ viewControllerManager, onViewItem, hasProtectionSources, itemType }: Props) => { const instructionText = hasProtectionSources ? `Authenticate to view this ${itemType}.` : `Add a passcode or create an account to require authentication to view this ${itemType}.` return (
{instructionText}