diff --git a/src/components/Debug.tsx b/src/components/Debug.tsx index bb7afc80..826e5520 100644 --- a/src/components/Debug.tsx +++ b/src/components/Debug.tsx @@ -76,56 +76,89 @@ const Debug: React.FC = () => { else localStorage.removeItem('debug') } + const CodeBox = ({ value }: { value: string }) => ( +
{value || '—'}
+ )
+
+ const Stat = ({ label, value }: { label: string; value?: string | number | null }) => (
+ {label}: {value ?? '—'}
+ )
+
return (
{pubkey || 'none'}{pubkey || 'none'}
+ {plain44}{tEncrypt44 !== null && ( • enc {tEncrypt44}ms)}{tDecrypt44 !== null && ( • dec {tDecrypt44}ms)}
- {plain04}{tEncrypt04 !== null && ( • enc {tEncrypt04}ms)}{tDecrypt04 !== null && ( • dec {tDecrypt04}ms)}
+