All files / src/apps/user/pages/settings Privacy.tsx

100% Statements 3/3
100% Branches 0/0
100% Functions 2/2
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99              1x 1x                                                                                                                                                 3x                                  
import SubPage from "@/components/page/SubPage/SubPage";
import { APP_ROUTES } from "@/routes/const";
import { ExternalLink } from "lucide-react";
import React from "react";
import { Link } from "react-router-dom";
import { InfoRow, SettingsSection, SettingsTabs } from "./SettingsTabs";
 
const Privacy: React.FC = () => (
  <SubPage title="Privacy" links={[<SettingsTabs key="tabs" active="privacy" />]}>
    <div className="max-w-xl space-y-6">
      <SettingsSection
        title="Analytics & error reporting"
        description="What CHAIN-R records about how you use it."
      >
        <InfoRow
          label="Product analytics"
          description="CHAIN-R adds no analytics or tracking scripts to the app or the website."
          value="None"
        />
        <InfoRow
          label="Error reporting"
          description="Errors are logged on CHAIN-R's own servers to keep the service running, and never sent to an outside error-tracking service."
          value="Own servers only"
        />
      </SettingsSection>
 
      <SettingsSection
        title="Model providers"
        description="What happens to a prompt when it leaves CHAIN-R."
      >
        <InfoRow
          label="Training"
          description={
            <>
              A prompt is sent to the provider of the model that answers it,
              only to answer it. CHAIN-R does not use your content to train
              models. Which providers handle your requests, and where, is
              listed under{" "}
              <Link
                to={APP_ROUTES.USER.SETTINGS.data}
                className="underline hover:text-gray-700 dark:hover:text-gray-300"
              >
                Data
              </Link>
              .
            </>
          }
          value="Not used"
        />
      </SettingsSection>
 
      <SettingsSection
        title="Cookies & browser storage"
        description="No advertising or analytics cookies."
      >
        <InfoRow
          label="Sign-in cookies"
          description="Keep you signed in and protect access to the platform."
          value="Essential"
        />
        <InfoRow
          label="Browser storage"
          description="Your theme and similar interface preferences are kept in this browser."
          value="This browser"
        />
      </SettingsSection>
 
      <div className="rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 shadow-sm px-5 py-4 flex flex-col gap-2">
        <h3 className="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-1">
          Legal Documents
        </h3>
        {(
          [
            { label: "Privacy Policy", to: APP_ROUTES.LEGAL.privacy_policy },
            {
              label: "Terms of Service",
              to: APP_ROUTES.LEGAL.terms_of_service,
            },
            { label: "Policy Documents", to: APP_ROUTES.LEGAL.legal_docs },
          ] as { label: string; to: string }[]
        ).map(({ label, to }) => (
          <a
            key={label}
            href={to}
            target="_blank"
            rel="noopener noreferrer"
            className="flex items-center gap-2 text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
          >
            <ExternalLink className="size-3.5 shrink-0" />
            {label}
          </a>
        ))}
      </div>
    </div>
  </SubPage>
);
 
export default Privacy;