import { Controller, useFormContext } from "react-hook-form"; import { FilterableSelect, FormControl } from "@app/components/v2"; import { SecretPathInput } from "@app/components/v2/SecretPathInput"; import { useWorkspace } from "@app/context"; import { TSecretSyncForm } from "./schemas"; export const SecretSyncSourceFields = () => { const { control, watch } = useFormContext(); const { currentWorkspace } = useWorkspace(); const selectedEnvironment = watch("environment"); return ( <>

Specify the environment and path where you would like to sync secrets from.

( option?.name} getOptionValue={(option) => option?.id} /> )} /> ( )} control={control} name="secretPath" /> ); };