import './admin.less'; import React, { useEffect, useState } from 'react'; const BrewUtils = require('./brewUtils/brewUtils.jsx'); const NotificationUtils = require('./notificationUtils/notificationUtils.jsx'); import AuthorUtils from './authorUtils/authorUtils.jsx'; const LockTools = require('./lockTools/lockTools.jsx'); const tabGroups = ['brew', 'notifications', 'authors']; const Admin = ()=>{ const [currentTab, setCurrentTab] = useState('brew'); useEffect(()=>{ setCurrentTab(localStorage.getItem('hbAdminTab')); }, []); useEffect(()=>{ localStorage.setItem('hbAdminTab', currentTab); }, [currentTab]); return (