import { Trans } from "@lingui/macro" import { Divider, Select, SimpleGrid, Stack, Switch } from "@mantine/core" import { Constants } from "app/constants" import { changeAlwaysScrollToEntry, changeCustomContextMenu, changeLanguage, changeMarkAllAsReadConfirmation, 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 alwaysScrollToEntry = useAppSelector(state => state.user.settings?.alwaysScrollToEntry) const markAllAsReadConfirmation = useAppSelector(state => state.user.settings?.markAllAsReadConfirmation) const customContextMenu = useAppSelector(state => state.user.settings?.customContextMenu) const sharingSettings = useAppSelector(state => state.user.settings?.sharingSettings) const dispatch = useAppDispatch() return (