import {Button, Checkbox, Form, FormInstance, Input, Popconfirm, Select, Space, Typography} from "antd"; import React, {useState} from "react"; import {Connector, ConnectorProvider} from "../../../utils/api/connectors"; import {t} from "ttag"; import {BankOutlined} from "@ant-design/icons"; import { ovhEndpointList as ovhEndpointListFunction, ovhFields as ovhFieldsFunction, ovhPricingMode as ovhPricingModeFunction, ovhSubsidiaryList as ovhSubsidiaryListFunction } from "../../../utils/providers/ovh"; import {helpGetTokenLink, tosHyperlink} from "../../../utils/providers"; const formItemLayoutWithOutLabel = { wrapperCol: { xs: {span: 24, offset: 0}, sm: {span: 20, offset: 4}, }, } export function ConnectorForm({form, onCreate}: { form: FormInstance, onCreate: (values: Connector) => void }) { const [provider, setProvider] = useState() const ovhFields = ovhFieldsFunction() const ovhEndpointList = ovhEndpointListFunction() const ovhSubsidiaryList = ovhSubsidiaryListFunction() const ovhPricingMode = ovhPricingModeFunction() const [open, setOpen] = useState(false) const [ovhPricingModeValue, setOvhPricingModeValue] = useState() return
) } { form.resetFields(['authData']) setOvhPricingModeValue(undefined) setOpen(false) }} onConfirm={() => setOpen(false)} open={open} > {t`It indicates the organization that will pay for the ordered product`}} required={false}> } { provider !== undefined && <> {t`I have read and accepted the conditions of use of the Provider API, accessible from this hyperlink`} {t`I am of the minimum age required to consent to these conditions`} {t`I waive my right of withdrawal regarding the purchase of domain names via the Provider's API`} }
}