import React from 'react'; import { Text, Slider, Stack } from '@mantine/core'; import { useTranslation } from 'next-i18next'; import { useConfig } from '../../tools/state'; export function AppCardWidthSelector() { const { config, setConfig } = useConfig(); const { t } = useTranslation('settings/customization/app-width'); const setappCardWidth = (appCardWidth: number) => { setConfig({ ...config, settings: { ...config.settings, appCardWidth, }, }); }; return ( {t('label')} setappCardWidth(value)} /> ); }