mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 19:28:51 +00:00
19 lines
712 B
TypeScript
19 lines
712 B
TypeScript
import { useFormContext } from "react-hook-form";
|
|
|
|
import { TSecretSyncForm } from "@app/components/secret-syncs/forms/schemas";
|
|
import { GenericFieldLabel } from "@app/components/v2";
|
|
import { SecretSync } from "@app/hooks/api/secretSyncs";
|
|
|
|
export const CloudflarePagesSyncReviewFields = () => {
|
|
const { watch } = useFormContext<TSecretSyncForm & { destination: SecretSync.CloudflarePages }>();
|
|
const projectName = watch("destinationConfig.projectName");
|
|
const environment = watch("destinationConfig.environment");
|
|
|
|
return (
|
|
<>
|
|
<GenericFieldLabel label="Project">{projectName}</GenericFieldLabel>
|
|
<GenericFieldLabel label="Environment">{environment}</GenericFieldLabel>
|
|
</>
|
|
);
|
|
};
|