import { Flex, Group } from '@mantine/core'; import { closeAllModals, openModal } from '@mantine/modals'; import { useTranslation } from 'react-i18next'; import { RiSettings2Fill } from 'react-icons/ri'; import { Button, ConfirmModal, PageHeader } from '/@/renderer/components'; import { LibraryHeaderBar } from '/@/renderer/features/shared'; import { useSettingsStoreActions } from '../../../store/settings.store'; export const SettingsHeader = () => { const { t } = useTranslation(); const { reset } = useSettingsStoreActions(); const handleResetToDefault = () => { reset(); closeAllModals(); }; const openResetConfirmModal = () => { openModal({ children: ( {t('common.areYouSure', { postProcess: 'sentenceCase' })} ), title: t('common.resetToDefault', { postProcess: 'sentenceCase' }), }); }; return ( {t('common.setting', { count: 2, postProcess: 'titleCase' })} ); };