1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import 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 = () =>
13 component={TextField as any}
14 validate={SSH_KEY_PUBLIC_VALIDATION}
16 label="Public Key" />;
18 export const SshKeyNameField = () =>
21 component={TextField as any}
22 validate={SSH_KEY_NAME_VALIDATION}