Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import Settings/Privacy from ./settings-privacy.
import { SettingsPrivacyScreen } from "@/components/ui/settings-privacy";
export default function Page() {
return (
<SettingsPrivacyScreen
privacy={settings}
onSave={(privacy) => savePrivacy(privacy)}
onExport={() => api.startExport()}
onDeleteChats={() => api.deleteAllChats()}
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| privacy | PrivacyValues | The switches, this browser's cookies, product emails, sessions (device, name, meta, current) and shared chats (title, scope, shared, views) – the sample person when left out | |
| onSave | (privacy: PrivacyValues) => void | Called with all settings whenever something changes, signing out a session and stopping a share included | |
| onExport | () => void | Called when an export of every chat and file is requested | |
| onDeleteChats | () => void | Called once deleting every chat is confirmed | |
| onNavigate | (label: string) => void | Called with the label of a sidebar item | |
| workspace | string | Workspace name in the sidebar | |
| user | { name: string; avatar?: string } | Account at the bottom of the sidebar | |
| loading | boolean | While the settings load: the switches, the email subscription, sessions and shared chats as gray shapes in the shape of the real ones; counts are hidden | |
| empty | boolean | Nothing shared yet: only this device signed in, and “No shared chats” (or “No public links”) with an Open chats button in the shared chats' place | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
Below 600px controls move under their labels; sessions and shared chats keep their action beside them
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as