import { useNavigate } from "react-router-dom"; import { LoadingState } from "../components/data-states"; import { useSSHKeys } from "../hooks/use-ssh-keys"; import { SSHKeyCreateForm } from "../components/features/ssh-keys/SSHKeyCreateForm"; import { SSHKeyList } from "../components/features/ssh-keys/SSHKeyList"; export const SSHKeysPage = () => { const navigate = useNavigate(); const { keys, status, loadKeys, newKeyName, setNewKeyName, generating, mutationError, signPayloads, signatures, signing, verifyPayloads, verifySignatures, verifyResults, verifying, handleGenerate, handleDelete, copyToClipboard, handleSign, handleVerify, setSignPayloads, setVerifyPayloads, setVerifySignatures, } = useSSHKeys(); if (status === "loading") return ; return (

Settings

SSH Keys

{mutationError &&
{mutationError}
} setSignPayloads((prev) => ({ ...prev, [id]: value })) } onVerifyPayloadChange={(id, value) => setVerifyPayloads((prev) => ({ ...prev, [id]: value })) } onVerifySignatureChange={(id, value) => setVerifySignatures((prev) => ({ ...prev, [id]: value })) } />
); };