feishin/src/renderer/features/settings/components/window/window-tab.tsx

24 lines
862 B
TypeScript
Raw Normal View History

import { Stack } from '@mantine/core';
2023-03-31 05:42:48 -07:00
import { UpdateSettings } from '/@/renderer/features/settings/components/window/update-settings';
import { WindowSettings } from '/@/renderer/features/settings/components/window/window-settings';
2023-10-23 06:58:39 -07:00
import { DiscordSettings } from '/@/renderer/features/settings/components/window/discord-settings';
import isElectron from 'is-electron';
import { PasswordSettings } from '/@/renderer/features/settings/components/window/password-settings';
const utils = isElectron() ? window.electron.utils : null;
2023-03-30 06:44:33 -07:00
export const WindowTab = () => {
2023-07-01 19:10:05 -07:00
return (
<Stack spacing="md">
<WindowSettings />
2023-10-23 06:58:39 -07:00
<DiscordSettings />
2023-07-01 19:10:05 -07:00
<UpdateSettings />
{utils?.isLinux() && (
<>
<PasswordSettings />
</>
)}
2023-07-01 19:10:05 -07:00
</Stack>
);
2023-03-30 06:44:33 -07:00
};