import { t } from "@lingui/macro" import { Divider, Select, SimpleGrid, Stack, Switch } from "@mantine/core" import { Constants } from "app/constants" import { changeLanguage, changeScrollMarks, changeScrollSpeed, changeSharingSetting, changeShowRead } from "app/slices/user" import { useAppDispatch, useAppSelector } from "app/store" import { SharingSettings } from "app/types" import { locales } from "i18n" export function DisplaySettings() { const language = useAppSelector(state => state.user.settings?.language) const scrollSpeed = useAppSelector(state => state.user.settings?.scrollSpeed) const showRead = useAppSelector(state => state.user.settings?.showRead) const scrollMarks = useAppSelector(state => state.user.settings?.scrollMarks) const sharingSettings = useAppSelector(state => state.user.settings?.sharingSettings) const dispatch = useAppDispatch() return (