import React from "react"; import Layout from "../core/Layout"; import { isAuthenticated } from "../auth"; import { Link } from "react-router-dom"; const AdminDashboard = () => { const {// eslint-disable-next-line user: { _id, name, email, role } } = isAuthenticated(); const adminLinks = () => { return (

Admin Links

); }; const adminInfo = () => { return (

User Information

); }; return (
{adminLinks()}
{adminInfo()}
); }; export default AdminDashboard;