/* * Copyright (C) Contributors to the Suwayomi project * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { useTranslation } from 'react-i18next'; import { IReaderSettingsWithDefaultFlag, ReadingMode } from '@/features/reader/types/Reader.types.ts'; import { READING_MODE_VALUE_TO_DISPLAY_DATA, READING_MODE_VALUES, } from '@/features/reader/constants/ReaderSettings.constants.tsx'; import { ButtonSelectInput } from '@/features/core/components/inputs/ButtonSelectInput.tsx'; import { MultiValueButtonDefaultableProps } from '@/features/core/Core.types.ts'; export const ReaderSettingReadingMode = ({ readingMode, setReadingMode, ...buttonSelectInputProps }: Pick & Pick, 'isDefaultable' | 'onDefault'> & { setReadingMode: (mode: ReadingMode) => void; }) => { const { t } = useTranslation(); return ( ); };