import { useFormContext } from "react-hook-form"; import { GenericFieldLabel } from "@app/components/secret-syncs"; import { TSecretSyncForm } from "@app/components/secret-syncs/forms/schemas"; import { SecretSync } from "@app/hooks/api/secretSyncs"; export const CamundaSyncReviewFields = () => { const { watch } = useFormContext(); const scope = watch("destinationConfig.scope"); const clusterName = watch("destinationConfig.clusterName"); const clusterUUID = watch("destinationConfig.clusterUUID"); return ( <> {scope} {clusterName} (id:{clusterUUID}) ); };