29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { t } from '@/lib/i18n'
|
|
import { SyncProgressBar } from '../SyncProgressBar'
|
|
import { KeyManagementImportSection } from './KeyManagementImportSection'
|
|
import { KeyManagementRecoverySection } from './KeyManagementRecoverySection'
|
|
import { useKeyManagementManager } from './useKeyManagementManager'
|
|
|
|
export function KeyManagementManager(): React.ReactElement {
|
|
const { state, actions } = useKeyManagementManager()
|
|
|
|
if (state.loading) {
|
|
return (
|
|
<div className="bg-cyber-darker border border-neon-cyan/30 rounded-lg p-6">
|
|
<p className="text-cyber-accent">{t('settings.keyManagement.loading')}</p>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
return (
|
|
<div className="space-y-6">
|
|
<div className="bg-cyber-darker border border-neon-cyan/30 rounded-lg p-6">
|
|
<h2 className="text-2xl font-bold text-neon-cyan mb-4">{t('settings.keyManagement.title')}</h2>
|
|
<KeyManagementImportSection state={state} actions={actions} />
|
|
<SyncProgressBar />
|
|
<KeyManagementRecoverySection state={state} actions={actions} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|