19079: Add search results context menu with clipboard and new tab options
[arvados.git] / src / views-components / form-fields / ssh-key-form-fields.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
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";
9
10 export const SshKeyPublicField = () =>
11     <Field
12         name='publicKey'
13         component={TextField as any}
14         validate={SSH_KEY_PUBLIC_VALIDATION}
15         autoFocus={true}
16         label="Public Key" />;
17
18 export const SshKeyNameField = () =>
19     <Field
20         name='name'
21         component={TextField as any}
22         validate={SSH_KEY_NAME_VALIDATION}
23         label="Name" />;
24
25