import React from "react"; import styled from "styled-components"; import { Field } from "redux-form"; import { DropdownWrapper, FormBodyWrapper, FormHeaderIndex, FormHeaderLabel, withDropdown, } from "./common"; import { createMessage, WELCOME_FORM_EMAIL_ID, WELCOME_FORM_FULL_NAME, WELCOME_FORM_CREATE_PASSWORD, WELCOME_FORM_VERIFY_PASSWORD, WELCOME_FORM_ROLE_DROPDOWN, WELCOME_FORM_ROLE, WELCOME_FORM_USE_CASE, WELCOME_FORM_CUSTOM_USE_CASE, WELCOME_FORM_HEADER, WELCOME_FORM_ROLE_DROPDOWN_PLACEHOLDER, WELCOME_FORM_USE_CASE_PLACEHOLDER, } from "@appsmith/constants/messages"; import FormTextField from "components/utils/ReduxFormTextField"; import type { SetupFormProps } from "./SetupForm"; import { ButtonWrapper } from "pages/Applications/ForkModalStyles"; import { FormGroup } from "design-system-old"; import { Button } from "design-system"; import { roleOptions, useCaseOptions } from "./constants"; import { isAirgapped } from "@appsmith/utils/airgapHelpers"; const DetailsFormWrapper = styled.div` width: 100%; position: relative; padding-left: ${(props) => props.theme.spaces[17] * 2}px; padding-right: ${(props) => props.theme.spaces[4]}px; `; const StyledFormBodyWrapper = styled(FormBodyWrapper)` width: 260px; `; const StyledFormGroup = styled(FormGroup)` && > .bp3-label { color: var(--ads-v2-color-fg); } `; export default function DetailsForm( props: SetupFormProps & { onNext?: () => void }, ) { const ref = React.createRef(); const isAirgappedInstance = isAirgapped(); return (
1. {createMessage(WELCOME_FORM_HEADER)}
{props.role == "other" && ( )} {props.useCase == "other" && ( )}
); }