import { type ServerlessFunctionNewFormValues } from '@/settings/serverless-functions/hooks/useServerlessFunctionUpdateFormState'; import { SettingsTextInput } from '@/ui/input/components/SettingsTextInput'; import { TextArea } from '@/ui/input/components/TextArea'; import styled from '@emotion/styled'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; const StyledInputsContainer = styled.div` display: flex; flex-direction: column; gap: ${({ theme }) => theme.spacing(4)}; `; export const SettingsServerlessFunctionNewForm = ({ formValues, onChange, readonly = false, }: { formValues: ServerlessFunctionNewFormValues; onChange: (key: string) => (value: string) => void; readonly?: boolean; }) => { const descriptionTextAreaId = `${formValues.name}-description`; const nameTextInputId = `${formValues.name}-name`; return (