import React from "react"; import styled from "styled-components"; import { Field } from "redux-form"; import { DropdownWrapper, FormBodyWrapper, FormHeaderIndex, FormHeaderLabel, FormHeaderWrapper, 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 { SetupFormProps } from "./SetupForm"; import { ButtonWrapper } from "pages/Applications/ForkModalStyles"; import { Button, Category, FormGroup as StyledFormGroup, Size, } from "design-system"; import { roleOptions, useCaseOptions } from "./constants"; 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; `; export default function DetailsForm( props: SetupFormProps & { onNext?: () => void }, ) { const ref = React.createRef(); return ( 1. {createMessage(WELCOME_FORM_HEADER)} {props.role == "other" && ( )} {props.useCase == "other" && ( )}