/* * 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 { alpha, darken, lighten, useTheme } from '@mui/material/styles'; import Box from '@mui/material/Box'; import { memo } from 'react'; import { applyStyles } from '@/modules/core/utils/ApplyStyles.ts'; import { ReaderProgressBarSlot } from '@/modules/reader/components/overlay/progress-bar/ReaderProgressBarSlot.tsx'; import { IReaderSettings } from '@/modules/reader/types/Reader.types.ts'; import { getProgressBarPositionInfo } from '@/modules/reader/utils/ReaderProgressBar.utils.tsx'; export const ReaderProgressBarSlotDesktop = memo( ({ pageName, pageUrl, primaryPageLoadState, secondaryPageLoadState, progressBarPosition, isCurrentPage, isFirstPage, isLastPage, isLeadingPage, isDragging, }: Pick & { pageName: string; pageUrl: string; primaryPageLoadState: boolean; secondaryPageLoadState?: boolean; isCurrentPage: boolean; isFirstPage: boolean; isLastPage: boolean; isLeadingPage: boolean; isDragging: boolean; }) => { const theme = useTheme(); const { isVertical, isHorizontal } = getProgressBarPositionInfo(progressBarPosition); return ( ); }, );