import { mainNavItem } from '@/types';
import { Users, ChartNoAxesCombinedIcon } from 'lucide-react';
import { route as routeHelper } from 'ziggy-js';

// Translation helper is globally injected
declare function __(key: string): string;

export interface TenabledAppModules {
    apps: {
        [key: string]: boolean;
    };
    modules: {
        [key: string]: boolean;
    };
}


// Helper to safely get route URL
const safeRoute = (routeName: string, fallback: string = '#'): string => {
    try {
        return routeHelper(routeName);
    } catch {
        return fallback;
    }
};

export const InventoryMenuItems = (): mainNavItem[] => {
    const items: mainNavItem[] = [];
    // CRM
        items.push({
            title: __("Inventory"),
            icon: ChartNoAxesCombinedIcon,
            isActive: false,
            items: [
                {
                    title: __("Supplier"),
                    icon: Users,
                     url:"#",
                    isActive: false,
                },
            ],
        });

    return items;
};


