2024-01-26 20:50:51 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2024-10-05 21:22:12 +02:00
|
|
|
import { GridLayouts } from '@/modules/core/components/GridLayouts.tsx';
|
2024-10-05 16:09:34 +02:00
|
|
|
import { useLocalStorage } from '@/modules/core/hooks/useStorage.tsx';
|
2024-10-26 17:25:04 +02:00
|
|
|
import { GridLayout } from '@/modules/core/Core.types.ts';
|
2024-01-26 20:50:51 +01:00
|
|
|
|
|
|
|
|
export function SourceGridLayout() {
|
2024-09-17 03:40:55 +02:00
|
|
|
const [sourceGridLayout, setSourceGridLayout] = useLocalStorage('source-grid-layout', GridLayout.Compact);
|
2024-01-26 20:50:51 +01:00
|
|
|
|
2024-09-17 03:40:55 +02:00
|
|
|
return <GridLayouts gridLayout={sourceGridLayout} onChange={setSourceGridLayout} />;
|
2024-01-26 20:50:51 +01:00
|
|
|
}
|