1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from "react";
6 import { Field } from "redux-form";
7 import { TextField } from "~/components/text-field/text-field";
8 import { SSH_KEY_PUBLIC_VALIDATION, SSH_KEY_NAME_VALIDATION } from "~/validators/validators";
10 export const SshKeyPublicField = () =>
14 validate={SSH_KEY_PUBLIC_VALIDATION}
16 label="Public Key" />;
18 export const SshKeyNameField = () =>
22 validate={SSH_KEY_NAME_VALIDATION}