import { mainNavItem } from '@admin/types';
import { Users } from 'lucide-react';

export const inventoryMenuItems = (module: any) => {

    // Return an empty array if module or module_menu is missing
    if (!module || !module.module_menu) return [];

    // Check if the first menu is active (adjust index if needed)
    const isMenuActive = module.module_menu[0]?.is_active;

    return isMenuActive
        ? [
            // {
            //     title: 'Customer',
            //     icon: Users,
            //     url: route('inventory.customer.index'), // This will be Inventory Customer route when module is created
            // },
        ]
        : [];
};
