import { fs } from '@janhq/core' import { Button, Input, ScrollArea, Switch } from '@janhq/joi' import { useAtom, useAtomValue } from 'jotai' import { FolderOpenIcon } from 'lucide-react' import posthog from 'posthog-js' import { toaster } from '@/containers/Toast' import { usePath } from '@/hooks/usePath' import { janDataFolderPathAtom } from '@/helpers/atoms/AppConfig.atom' import { productAnalyticAtom } from '@/helpers/atoms/Setting.atom' const Privacy = () => { /** * Clear logs * @returns */ const clearLogs = async () => { try { await fs.rm(`file://logs`) } catch (err) { console.error('Error clearing logs: ', err) } toaster({ title: 'Logs cleared', description: 'All logs have been cleared.', type: 'success', }) } const janDataFolderPath = useAtomValue(janDataFolderPathAtom) const { onRevealInFinder } = usePath() const [productAnalytic, setProductAnalytic] = useAtom(productAnalyticAtom) return (

We prioritize your control over your data. Learn more about our  Privacy Policy.


To make Jan better, we need to understand how it’s used - but only if you choose to help. You can change your Jan Analytics settings anytime.


{`Your choice to opt-in or out doesn't change our core privacy promises:`}

{/* Analytic */}
Analytics

By opting in, you help us make Jan better by sharing anonymous data, like feature usage and user counts. Your chats and personal information are never collected.

{ if (e.target.checked) { posthog.opt_in_capturing() } else { posthog.capture('user_opt_out', { timestamp: new Date() }) posthog.opt_out_capturing() } setProductAnalytic(e.target.checked) }} />
{/* Logs */}
Logs

Open App Logs and Cortex Logs.

onRevealInFinder('Logs')} />
{/* Clear log */}
Clear logs

Clear all logs from Jan app.

) } export default Privacy