import React, { useEffect } from 'react'; import cn from 'classnames'; import { Switch } from 'antd'; import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; import withPageTitle from 'HOCs/withPageTitle'; import stl from './notifications.module.css'; import { useTranslation } from 'react-i18next'; function Notifications() { const { weeklyReportStore } = useStore(); const { t } = useTranslation(); useEffect(() => { void weeklyReportStore.fetchReport(); }, []); const onChange = () => { const newValue = !weeklyReportStore.weeklyReport; void weeklyReportStore.fetchEditReport(newValue); }; return (

{t('Weekly Report')}

{t('Weekly project summary')}
{t('Receive weekly report for each project on email.')}
{weeklyReportStore.weeklyReport ? t('Yes') : t('No')}
); } export default withPageTitle('Weekly Report - OpenReplay Preferences')( observer(Notifications), );