import {t} from 'ttag' import {regionNames} from "../../../i18n" import React, {useState} from 'react' import type {FormInstance} from "antd" import {Form, Input, Popconfirm, Select, Typography} from "antd" import {AppstoreOutlined, LockOutlined, UserOutlined} from "@ant-design/icons" export default function OvhCloudConnectorForm({form}: { form: FormInstance }) { const [open, setOpen] = useState(false) const [ovhPricingModeValue, setOvhPricingModeValue] = useState() const ovhEndpointList = [ {label: t`European Region`, value: 'ovh-eu'}, {label: t`United States Region`, value: 'ovh-us'}, {label: t`Canada Region`, value: 'ovh-ca'} ] const ovhSubsidiaryList = [...[ 'CZ', 'DE', 'ES', 'FI', 'FR', 'GB', 'IE', 'IT', 'LT', 'MA', 'NL', 'PL', 'PT', 'SN', 'TN' ].map(c => ({value: c, label: regionNames.of(c) ?? c})), {value: 'EU', label: t`Europe`}] const ovhPricingMode = [ {value: 'create-default', label: t`The domain is free and at the standard price`}, { value: 'create-premium', label: t`The domain is free but can be premium. Its price varies from one domain to another` } ] return ( <> {t`Retrieve a set of tokens from your customer account on the Provider's website`} } > } autoComplete='off'/> } autoComplete='off'/> } autoComplete='off'/> { form.resetFields(['authData']) setOvhPricingModeValue(undefined) setOpen(false) }} onConfirm={() => setOpen(false)} open={open} >