/* * 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 { ComponentProps, ReactNode } from 'react'; import Stack from '@mui/material/Stack'; import { TypographyMaxLines } from '@/features/core/components/texts/TypographyMaxLines.tsx'; import { CustomTooltip } from '@/features/core/components/CustomTooltip.tsx'; export const ChapterCardMetadata = ({ title, secondaryText, ternaryText, infoIcons, slotProps, }: { title: string; secondaryText?: string | null; ternaryText?: string | null; infoIcons?: ReactNode; slotProps?: { title?: ComponentProps; secondaryText?: ComponentProps; ternaryText?: ComponentProps; }; }) => ( {infoIcons} {title} {secondaryText && ( {secondaryText} )} {ternaryText && ( {ternaryText} )} );