Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

3.4 KB
Raw Blame
import { Heading, Section, Text } from "@react-email/components";
import React from "react";

import { NATIVE_INTEGRATION_DEPRECATION_DATE } from "@app/services/integration/integration-deprecation-fns";

import { BaseEmailWrapper, BaseEmailWrapperProps } from "./BaseEmailWrapper";
import { BaseLink } from "./BaseLink";

const MIGRATION_DOC_URL = "https://infisical.com/docs/integrations/secret-syncs/native-integrations-migration";

interface NativeIntegrationDeprecationOrgAdminTemplateProps
  extends Omit<BaseEmailWrapperProps, "title" | "preview" | "children"> {
  orgName: string;
  projectCount: number;
}

export const NativeIntegrationDeprecationOrgAdminTemplate = ({
  siteUrl,
  orgName,
  projectCount
}: NativeIntegrationDeprecationOrgAdminTemplateProps) => {
  const isSingleProject = projectCount === 1;

  return (
    <BaseEmailWrapper
      title="Native Integrations are being retired"
      preview="Native Integrations must be migrated to Secret Syncs"
      siteUrl={siteUrl}
    >
      <Heading className="text-black text-[18px] leading-[28px] text-center font-normal p-0 mx-0">
        <strong>Native Integrations must be migrated to Secret Syncs</strong>
      </Heading>
      <Section className="px-[24px] mb-[28px] mt-[36px] pt-[12px] pb-[8px] border border-solid border-gray-200 rounded-md bg-gray-50">
        <Text className="text-black text-[14px] leading-[24px]">Hello,</Text>
        <Text className="text-black text-[14px] leading-[24px]">
          <strong>{projectCount}</strong> {isSingleProject ? "project" : "projects"} in <strong>{orgName}</strong>{" "}
          {isSingleProject ? "is" : "are"} using native integrations. Native integrations are being retired on{" "}
          <strong>{NATIVE_INTEGRATION_DEPRECATION_DATE}</strong>.
        </Text>
        <Text className="text-black text-[14px] leading-[24px]">
          Native Integrations are being replaced by Secret Syncs, which support all the same third-party services, plus
          additional features such as reusable credentials, secret key schemas, and much more. Most users finish
          migrating in under 15 minutes.
        </Text>
        <Text className="text-black text-[14px] leading-[24px]">
          We recommend sharing this with the project admins in your organization so they can plan their migration.{" "}
          <BaseLink href={MIGRATION_DOC_URL}>
            Learn more about the migration from Native Integrations to Secret Syncs
          </BaseLink>
          .
        </Text>
        <Text className="text-black text-[14px] leading-[24px]">
          We put together a step-by-step guide here:{" "}
          <BaseLink href={MIGRATION_DOC_URL}>Migrating Native Integrations</BaseLink>
        </Text>
        <Text className="text-black text-[14px] leading-[24px]">
          If you have a complex setup or want us to walk through the migration with you, reach out to us at{" "}
          <BaseLink href="mailto:[email protected]">[email protected]</BaseLink>.
        </Text>
        <Text className="text-black text-[14px] leading-[24px]">
          Thanks,
          <br />
          The Infisical Team
        </Text>
      </Section>
    </BaseEmailWrapper>
  );
};

export default NativeIntegrationDeprecationOrgAdminTemplate;

NativeIntegrationDeprecationOrgAdminTemplate.PreviewProps = {
  siteUrl: "https://infisical.com",
  orgName: "Example Organization",
  projectCount: 5
} as NativeIntegrationDeprecationOrgAdminTemplateProps;