import variables from 'config/variables'; import { memo } from 'react'; import EventBus from 'utils/eventbus'; import { Tooltip, Button } from 'components/Elements'; import { MdClose, MdDone } from 'react-icons/md'; function ExcludeModal({ modalClose, info }) { const excludeImage = async () => { let backgroundExclude = JSON.parse(localStorage.getItem('backgroundExclude')); backgroundExclude.push(info.pun); backgroundExclude = JSON.stringify(backgroundExclude); localStorage.setItem('backgroundExclude', backgroundExclude); EventBus.emit('refresh', 'background'); modalClose(); }; return (
{variables.getMessage('modals.main.settings.sections.advanced.reset_modal.title')}
{variables.getMessage('widgets.background.exclude_confirm', { category: info.category })}
); } export default memo(ExcludeModal);