1 import { c } from 'ttag';
3 import { Icon, Tooltip } from '@proton/components';
5 import { type SignatureIssues } from '../store';
6 import { hasValidAnonymousSignature } from './hasValidAnonymousSignature';
9 signatureIssues?: SignatureIssues;
11 isAnonymous?: boolean;
15 export default function SignatureIcon({ isFile, isAnonymous = false, signatureIssues, className }: Props) {
16 if (!signatureIssues || (isAnonymous && hasValidAnonymousSignature(signatureIssues))) {
21 ? c('Title').t`This file has a missing or invalid signature. Go to Menu (⋮) → Details for info.`
22 : c('Title').t`This folder has a missing or invalid signature. Go to Menu (⋮) → Details for info.`;
25 <Tooltip title={title}>
26 <Icon name="lock-exclamation-filled" className={className} />