export interface SidebarLink {
    label: string;
    icon: string;
    href: string;
}

const baseMainLinks: SidebarLink[] = [
    { label: 'sidebar.dashboard', icon: 'pi-chart-bar', href: '/' },
    {
        label: 'sidebar.packages',
        icon: 'pi-box',
        href: '/packages',
    },
    { label: 'sidebar.cards', icon: 'pi-credit-card', href: '/cards' },
    { label: 'sidebar.history', icon: 'pi-history', href: '/history' },
];

export function getMainLinks(isPayAsYouGo: boolean): SidebarLink[] {
    const usageLink: SidebarLink = isPayAsYouGo
        ? { label: 'sidebar.usage_billing', icon: 'pi-wallet', href: '/pay-as-you-go' }
        : { label: 'sidebar.usage', icon: 'pi-chart-line', href: '/usage' };

    return [...baseMainLinks, usageLink];
}

/** @deprecated Use getMainLinks() for subscription-aware navigation */
export const mainLinks = getMainLinks(false);

export function getBottomLinks(href: string) {
    return [
        { label: 'sidebar.back_to_vom', icon: 'pi-arrow-circle-left', href },
    ];
}