/* * 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 { useTranslation } from 'react-i18next'; import Stack from '@mui/material/Stack'; import Button from '@mui/material/Button'; import AddCircleIcon from '@mui/icons-material/AddCircle'; import { bindDialog, bindTrigger, usePopupState } from 'material-ui-popup-state/hooks'; import { CustomTooltip } from '@/modules/core/components/CustomTooltip.tsx'; import { ThemeCreationDialog } from '@/modules/theme/components/CreateThemeDialog.tsx'; import { TypographyMaxLines } from '@/modules/core/components/texts/TypographyMaxLines.tsx'; export const CreateThemeButton = () => { const { t } = useTranslation(); const popupState = usePopupState({ variant: 'popover', popupId: 'theme-creation-dialog' }); return ( <> {t('settings.appearance.theme.create.title')} {popupState.isOpen && } ); };