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'; import LockTools from './lockTools/lockTools.jsx'; const tabGroups = ['brew', 'notifications', 'authors', 'locks']; const Admin = ()=>{ const [currentTab, setCurrentTab] = useState('brew'); useEffect(()=>{ setCurrentTab(localStorage.getItem('hbAdminTab')); }, []); useEffect(()=>{ localStorage.setItem('hbAdminTab', currentTab); }, [currentTab]); return (