/* * 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 Box from '@mui/material/Box'; import CardActionArea from '@mui/material/CardActionArea'; import Card from '@mui/material/Card'; import { Link } from 'react-router-dom'; import { memo } from 'react'; import { DownloadStateIndicator } from '@/base/components/downloads/DownloadStateIndicator.tsx'; import type { ChapterUpdateListFieldsFragment } from '@/lib/graphql/generated/graphql.ts'; import { AppRoutes } from '@/base/AppRoute.constants.ts'; import { ChapterCardThumbnail } from '@/features/chapter/components/cards/ChapterCardThumbnail.tsx'; import { ChapterCardMetadata } from '@/features/chapter/components/cards/ChapterCardMetadata.tsx'; import { ChapterDownloadButton } from '@/features/chapter/components/buttons/ChapterDownloadButton.tsx'; import { ChapterDownloadRetryButton } from '@/features/chapter/components/buttons/ChapterDownloadRetryButton.tsx'; import { Chapters } from '@/features/chapter/services/Chapters.ts'; import { ListCardContent } from '@/base/components/lists/cards/ListCardContent.tsx'; export const ChapterUpdateCard = memo(({ chapter }: { chapter: ChapterUpdateListFieldsFragment }) => { const { manga } = chapter; return ( theme.palette.text[chapter.isRead ? 'disabled' : 'primary'], }} > ); });