mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-21 06:59:17 -04:00
26 lines
766 B
TypeScript
26 lines
766 B
TypeScript
import { useState } from 'react';
|
|
import { Switch } from '@sd/ui';
|
|
import { Heading } from '../Layout';
|
|
import Setting from '../Setting';
|
|
|
|
export const Component = () => {
|
|
const [syncWithLibrary, setSyncWithLibrary] = useState(true);
|
|
return (
|
|
<>
|
|
{/* I don't care what you think the "right" way to write "keybinds" is, I simply refuse to refer to it as "keybindings" */}
|
|
<Heading title="Keybinds" description="Manage client keybinds" />
|
|
<Setting
|
|
mini
|
|
title="Sync with Library"
|
|
description="If enabled your keybinds will be synced with library, otherwise they will apply only to this client."
|
|
>
|
|
<Switch
|
|
checked={syncWithLibrary}
|
|
onCheckedChange={setSyncWithLibrary}
|
|
className="m-2 ml-4"
|
|
/>
|
|
</Setting>
|
|
</>
|
|
);
|
|
};
|