Skip to content

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

929 B
Raw Blame
import { Checkbox } from "@app/components/v3";

type Props = {
  acknowledged: boolean;
  onAcknowledgedChange: (value: boolean) => void;
};

// Single acknowledgment gate shown before an annual commitment is purchased or increased. The
// commitment is paid upfront, non-cancellable, and cannot be reduced until renewal, so Confirm stays
// locked until the customer checks this.
export const CommitmentTerms = ({ acknowledged, onAcknowledgedChange }: Props) => (
  <div>
    <div className="flex items-start gap-2.5">
      <Checkbox
        id="commitment-ack"
        isChecked={acknowledged}
        onCheckedChange={(value) => onAcknowledgedChange(value === true)}
      />
      <span className="text-xs text-muted">
        Click here to confirm your purchase and agree to be invoiced as shown above, prorated
        through your current billing cycle, per your Infisical agreement.
      </span>
    </div>
  </div>
);