import React, { useState } from 'react'; export default function KeypairManager({ keypairs, onSelect, onCreate, selectedKeypair }) { const [creating, setCreating] = useState(false); return (
{creating && (
)} {selectedKeypair && (
Public Key: {keypairs.find(kp => kp.id === selectedKeypair)?.publicKey}
)}
); }