feat: add action class to connect the api mongo - getAll

This commit is contained in:
Rodolfo Ruiz
2025-06-24 21:08:22 -06:00
parent 31600e5f1b
commit 03022206ae
5 changed files with 255 additions and 0 deletions

View File

@@ -4,10 +4,13 @@ import PeopleIcon from '@mui/icons-material/People';
import InventoryIcon from '@mui/icons-material/Inventory';
import LocalShippingIcon from '@mui/icons-material/LocalShipping';
import ExitToAppIcon from '@mui/icons-material/ExitToApp';
import AdminPanelSettingsIcon from '@mui/icons-material/AdminPanelSettings';
import { useState } from 'react';
const menuOptions = {
public: [
{ text: 'Admin', icon: <AdminPanelSettingsIcon /> },
{ text: 'Categories', icon: <CategoryIcon /> },
{ text: 'Clients', icon: <PeopleIcon /> },
{ text: 'Products', icon: <InventoryIcon /> },
@@ -16,6 +19,7 @@ const menuOptions = {
],
restricted: [],
private: [
{ text: 'Admin', icon: <AdminPanelSettingsIcon /> },
{ text: 'Categories', icon: <CategoryIcon /> },
{ text: 'Clients', icon: <PeopleIcon /> },
{ text: 'Products', icon: <InventoryIcon /> },