2023-04-02 21:41:32 -07:00
|
|
|
import { lazy, Suspense } from 'react';
|
2023-03-30 06:44:33 -07:00
|
|
|
import { Divider, Stack } from '@mantine/core';
|
|
|
|
|
import { AudioSettings } from '/@/renderer/features/settings/components/playback/audio-settings';
|
|
|
|
|
import { ScrobbleSettings } from '/@/renderer/features/settings/components/playback/scrobble-settings';
|
2023-04-02 21:41:32 -07:00
|
|
|
import isElectron from 'is-electron';
|
2023-05-28 14:31:49 -07:00
|
|
|
import { LyricSettings } from '/@/renderer/features/settings/components/playback/lyric-settings';
|
2023-04-02 21:41:32 -07:00
|
|
|
|
|
|
|
|
const MpvSettings = lazy(() =>
|
|
|
|
|
import('/@/renderer/features/settings/components/playback/mpv-settings').then((module) => {
|
|
|
|
|
return { default: module.MpvSettings };
|
|
|
|
|
}),
|
|
|
|
|
);
|
2022-12-19 15:59:14 -08:00
|
|
|
|
|
|
|
|
export const PlaybackTab = () => {
|
|
|
|
|
return (
|
2023-01-28 20:46:07 -08:00
|
|
|
<Stack spacing="md">
|
2023-03-30 06:44:33 -07:00
|
|
|
<AudioSettings />
|
2023-04-02 21:41:32 -07:00
|
|
|
<Suspense fallback={<></>}>{isElectron() && <MpvSettings />}</Suspense>
|
2023-01-30 20:01:57 -08:00
|
|
|
<Divider />
|
2023-03-30 06:44:33 -07:00
|
|
|
<ScrobbleSettings />
|
2023-05-28 14:31:49 -07:00
|
|
|
<Divider />
|
|
|
|
|
<LyricSettings />
|
2022-12-19 15:59:14 -08:00
|
|
|
</Stack>
|
|
|
|
|
);
|
|
|
|
|
};
|