diff --git a/apps/web/src/components/features/ssh-keys/SSHKeyCreateForm.tsx b/apps/web/src/components/features/ssh-keys/SSHKeyCreateForm.tsx new file mode 100644 index 0000000..4467af5 --- /dev/null +++ b/apps/web/src/components/features/ssh-keys/SSHKeyCreateForm.tsx @@ -0,0 +1,39 @@ +import { Icon } from "../../icon"; + +interface Props { + newKeyName: string; + setNewKeyName: (name: string) => void; + generating: boolean; + onSubmit: (e: React.FormEvent) => void; +} + +export const SSHKeyCreateForm = ({ newKeyName, setNewKeyName, generating, onSubmit }: Props) => { + return ( +
+ ); +}; diff --git a/apps/web/src/components/features/ssh-keys/SSHKeyList.tsx b/apps/web/src/components/features/ssh-keys/SSHKeyList.tsx new file mode 100644 index 0000000..c7529e6 --- /dev/null +++ b/apps/web/src/components/features/ssh-keys/SSHKeyList.tsx @@ -0,0 +1,180 @@ +import { Icon } from "../../icon"; +import { EmptyState, ErrorState } from "../../data-states"; +import type { SSHKey } from "../../../api/ssh-keys"; + +interface Props { + keys: SSHKey[]; + status: "idle" | "loading" | "ready" | "error"; + signPayloads: Record{key.public_key.substring(0, 50)}...
+
+ {signatures[key.id]}
+
+ {key.public_key.substring(0, 50)}...
-
- {signatures[key.id]}
-
-