mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-21 15:07:54 -04:00
26 lines
653 B
TypeScript
26 lines
653 B
TypeScript
import { Switch } from '@sd/ui';
|
|
import { telemetryStore, useTelemetryState } from '~/../packages/client/src';
|
|
import { Heading } from '../Layout';
|
|
import Setting from '../Setting';
|
|
|
|
export const Component = () => {
|
|
const shareTelemetry = useTelemetryState().shareTelemetry;
|
|
|
|
return (
|
|
<>
|
|
<Heading title="Privacy" description="" />
|
|
<Setting
|
|
mini
|
|
title="Share Telemetry and Usage Data"
|
|
description="Share anonymous usage data to help us improve the app."
|
|
>
|
|
<Switch
|
|
checked={shareTelemetry}
|
|
onClick={() => (telemetryStore.shareTelemetry = !shareTelemetry)}
|
|
className="m-2 ml-4"
|
|
/>
|
|
</Setting>
|
|
</>
|
|
);
|
|
};
|