2026-06-16 17:01:35 +03:30
|
|
|
import {
|
|
|
|
|
getBoursecuActionIconSrc,
|
|
|
|
|
getBoursecuTransactionsIcon,
|
|
|
|
|
isBoursecuProject,
|
|
|
|
|
} from '@/utils/config'
|
2026-06-14 10:08:46 +03:30
|
|
|
import type { AppNavItem } from '../types'
|
|
|
|
|
|
|
|
|
|
const BOURSECU_PRIMARY_NAV: AppNavItem[] = [
|
2026-06-16 17:01:35 +03:30
|
|
|
{
|
|
|
|
|
id: 'buyProduct',
|
|
|
|
|
routeName: 'buyProduct',
|
|
|
|
|
label: 'سفارشها',
|
|
|
|
|
icon: 'vuesax-linear:box',
|
|
|
|
|
iconSrc: getBoursecuActionIconSrc('buySell'),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'transactions',
|
|
|
|
|
routeName: 'transactions',
|
|
|
|
|
label: 'تراکنشها',
|
|
|
|
|
icon: 'vuesax-linear:receipt-item',
|
|
|
|
|
iconSrc: getBoursecuTransactionsIcon(),
|
|
|
|
|
},
|
2026-06-14 10:08:46 +03:30
|
|
|
{ id: 'home', routeName: 'home', label: 'صفحه اصلی', icon: 'vuesax-linear:home' },
|
2026-06-16 17:01:35 +03:30
|
|
|
{
|
|
|
|
|
id: 'wallet',
|
|
|
|
|
routeName: 'wallet',
|
|
|
|
|
label: 'کیف پول',
|
|
|
|
|
icon: 'vuesax-linear:wallet-1',
|
|
|
|
|
iconSrc: getBoursecuActionIconSrc('wallet'),
|
|
|
|
|
},
|
2026-06-14 10:08:46 +03:30
|
|
|
{ id: 'user', routeName: 'user', label: 'تنظیمات', icon: 'vuesax-linear:setting-2' },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const DEFAULT_PRIMARY_NAV: AppNavItem[] = [
|
|
|
|
|
{ id: 'home', routeName: 'home', label: 'صفحه اصلی', icon: 'vuesax-linear:home' },
|
|
|
|
|
{ id: 'transactions', routeName: 'transactions', label: 'گزارش', icon: 'vuesax-linear:receipt-item' },
|
|
|
|
|
{ id: 'buyProduct', routeName: 'buyProduct', label: 'محصولات', icon: 'vuesax-linear:coin' },
|
|
|
|
|
{ id: 'wallet', routeName: 'wallet', label: 'کیف پول', icon: 'vuesax-linear:wallet-1' },
|
|
|
|
|
{ id: 'user', routeName: 'user', label: 'تنظیمات', icon: 'vuesax-linear:setting-2' },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const SECONDARY_NAV: AppNavItem[] = [
|
|
|
|
|
{ id: 'notifyTrigger', routeName: 'notifyTrigger', label: 'هشدار قیمت', icon: 'vuesax-linear:bill' },
|
|
|
|
|
{ id: 'about', routeName: 'about', label: 'درباره ما', icon: 'vuesax-linear:info-circle' },
|
|
|
|
|
{ id: 'rules', routeName: 'rules', label: 'قوانین و مقررات', icon: 'vuesax-linear:task' },
|
|
|
|
|
{ id: 'giftCard', routeName: 'giftCard', label: 'ثبت کارت هدیه', icon: 'vuesax-linear:gift' },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export function getPrimaryNavItems(): AppNavItem[] {
|
|
|
|
|
return isBoursecuProject() ? BOURSECU_PRIMARY_NAV : DEFAULT_PRIMARY_NAV
|
|
|
|
|
}
|