2024-12-13 16:48:24 +01: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 from '@mui/material/Stack';
|
|
|
|
|
import Typography from '@mui/material/Typography';
|
|
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
|
import { MediaQuery } from '@/modules/core/utils/MediaQuery.tsx';
|
|
|
|
|
|
2024-12-23 01:06:43 +01:00
|
|
|
export const DefaultSettingFootnote = ({ areDefaultSettings }: { areDefaultSettings?: boolean }) => {
|
2024-12-13 16:48:24 +01:00
|
|
|
const { t } = useTranslation();
|
|
|
|
|
const isTouchDevice = MediaQuery.useIsTouchDevice();
|
|
|
|
|
|
2024-12-23 01:06:43 +01:00
|
|
|
if (!isTouchDevice || areDefaultSettings) {
|
2024-12-13 16:48:24 +01:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Stack sx={{ alignItems: 'end' }}>
|
|
|
|
|
<Typography variant="caption">{t('reader.settings.default_setting_footnote')}</Typography>
|
|
|
|
|
</Stack>
|
|
|
|
|
);
|
|
|
|
|
};
|