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-03-03 00:37:22 +09:00
|
|
|
<ScrollArea style={{ height: height - 100 }} scrollbarSize={5}>
|
2023-01-05 22:44:43 +09:00
|
|
|
<Stack mt="xs" mb="md" spacing="xs">
|
2023-03-03 12:40:49 +09:00
|
|
|
<Text color="dimmed">{t('text')}</Text>
|
2023-02-05 17:16:03 +01:00
|
|
|
<CustomizationSettingsAccordeon />
|
2023-01-05 22:44:43 +09:00
|
|
|
</Stack>
|
|
|
|
|
</ScrollArea>
|
2022-12-04 17:36:30 +01:00
|
|
|
);
|
|
|
|
|
}
|