/** * Generate Biometric Key Panel - Windows Hello / Touch ID */ import { Fingerprint } from 'lucide-react'; import React from 'react'; import { SSHKey } from '../../types'; import { Button } from '../ui/button'; import { Input } from '../ui/input'; import { Label } from '../ui/label'; import { isMacOS } from './utils'; interface GenerateBiometricPanelProps { draftKey: Partial; setDraftKey: (key: Partial) => void; isGenerating: boolean; onGenerate: () => void; } export const GenerateBiometricPanel: React.FC = ({ draftKey, setDraftKey, isGenerating, onGenerate, }) => { const isMac = isMacOS(); return ( <> {/* Keyboard illustration */}
{['9', '0', ')', '-', '+', '='].map((k, i) => (
{k}
))}
back
{['I', 'O', 'P', '[', ']', '{', '}'].map((k, i) => (
{k}
))}

Biometric Key based on Secure Enclave Process built-in into your {isMac ? 'mac' : 'system'}. This key is not possible to copy or steal.

setDraftKey({ ...draftKey, label: e.target.value })} placeholder={isMac ? 'Touch ID' : 'Windows Hello'} />

ECDSA

256

); };