import { Controller, useFormContext } from "react-hook-form"; import { faInfoCircle } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { SecretSyncConnectionField } from "@app/components/secret-syncs/forms/SecretSyncConnectionField"; import { FormControl, Input } from "@app/components/v2"; import { SecretSync } from "@app/hooks/api/secretSyncs"; import { TSecretSyncForm } from "../schemas"; export const AzureKeyVaultSyncFields = () => { const { control, setValue } = useFormContext< TSecretSyncForm & { destination: SecretSync.AzureKeyVault } >(); return ( <> { setValue("destinationConfig.vaultBaseUrl", ""); }} /> ( )} />

Secret keys with underscores (_) will be converted to hyphens (-) when syncing to Azure Key Vault.

); };