2024-05-23 00:40:20 +02:00
|
|
|
/*
|
|
|
|
|
* 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 Stack, { StackProps } from '@mui/material/Stack';
|
|
|
|
|
import Typography, { TypographyProps } from '@mui/material/Typography';
|
|
|
|
|
|
|
|
|
|
export const Metadata = ({
|
|
|
|
|
title,
|
|
|
|
|
value,
|
|
|
|
|
stackProps,
|
|
|
|
|
titleProps,
|
|
|
|
|
valueProps,
|
|
|
|
|
}: {
|
|
|
|
|
title: string;
|
|
|
|
|
value: string;
|
|
|
|
|
stackProps?: StackProps;
|
|
|
|
|
titleProps?: TypographyProps;
|
|
|
|
|
valueProps?: TypographyProps;
|
|
|
|
|
}) => (
|
|
|
|
|
<Stack
|
|
|
|
|
{...stackProps}
|
|
|
|
|
sx={{ flexDirection: 'row', columnGap: 1, flexWrap: 'wrap', alignItems: 'baseline', ...stackProps?.sx }}
|
|
|
|
|
>
|
2024-09-03 17:15:47 +02:00
|
|
|
<Typography
|
|
|
|
|
{...titleProps}
|
|
|
|
|
sx={{
|
|
|
|
|
color: 'text.secondary',
|
|
|
|
|
...titleProps?.sx,
|
|
|
|
|
}}
|
|
|
|
|
>
|
2024-05-23 00:41:48 +02:00
|
|
|
{title}
|
2024-05-23 00:40:20 +02:00
|
|
|
</Typography>
|
2024-05-23 00:41:48 +02:00
|
|
|
<Typography {...valueProps}>{value}</Typography>
|
2024-05-23 00:40:20 +02:00
|
|
|
</Stack>
|
|
|
|
|
);
|