2023-02-05 17:16:03 +01:00
|
|
|
import { ScrollArea, Stack, Text } from '@mantine/core';
|
2023-01-05 22:44:43 +09:00
|
|
|
import { useViewportSize } from '@mantine/hooks';
|
2023-01-04 22:39:58 +09:00
|
|
|
import { useTranslation } from 'next-i18next';
|
2023-02-05 17:16:03 +01:00
|
|
|
import { CustomizationSettingsAccordeon } from './CustomizationAccordeon';
|
2022-12-04 17:36:30 +01:00
|
|
|
|
|
|
|
|
export default function CustomizationSettings() {
|
2023-02-05 17:16:03 +01:00
|
|
|
const { height } = useViewportSize();
|
|
|
|
|
const { t } = useTranslation('settings/customization/general');
|
2022-12-24 15:43:49 +01:00
|
|
|
|
2022-12-04 17:36:30 +01:00
|
|
|
return (
|
2023-01-05 22:44:43 +09:00
|
|
|
<ScrollArea style={{ height: height - 100 }} offsetScrollbars>
|
|
|
|
|
<Stack mt="xs" mb="md" spacing="xs">
|
2023-02-05 17:16:03 +01:00
|
|
|
<Text color="dimmed">
|
|
|
|
|
{t('text')}
|
|
|
|
|
</Text>
|
|
|
|
|
<CustomizationSettingsAccordeon />
|
2023-01-05 22:44:43 +09:00
|
|
|
</Stack>
|
|
|
|
|
</ScrollArea>
|
2022-12-04 17:36:30 +01:00
|
|
|
);
|
|
|
|
|
}
|