/* * 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 Button from '@mui/material/Button'; import Box from '@mui/material/Box'; import { useLingui } from '@lingui/react/macro'; import type { IReaderSettings } from '@/features/reader/Reader.types.ts'; import { READER_PAGE_SCALE_MODE_TO_SCALING_ALLOWED } from '@/features/reader/settings/ReaderSettings.constants.tsx'; export const ReaderSettingStretchPage = ({ pageScaleMode, shouldStretchPage, setShouldStretchPage, }: Pick & { setShouldStretchPage: (mode: IReaderSettings['shouldStretchPage']) => void; }) => { const { t } = useLingui(); if (!READER_PAGE_SCALE_MODE_TO_SCALING_ALLOWED[pageScaleMode]) { return null; } return ( ); };