export const navs = [ { title: 'dashboard', url: '/dashboard', icon: 'uil:dashboard', image: 'dashboard', }, { url: '/subscribe', icon: 'uil:shop', title: 'subscribe', image: 'shop', }, { url: '/order', icon: 'uil:notes', title: 'order', image: 'notes', }, { url: '/wallet', icon: 'uil:wallet', title: 'wallet', image: 'wallet', }, { url: '/affiliate', icon: 'uil:users-alt', title: 'affiliate', image: 'affiliate', }, { url: '/document', icon: 'uil:book-alt', title: 'document', image: 'document', }, { url: '/profile', icon: 'uil:megaphone', title: 'profile', hidden: true, image: 'profile', }, { url: '/ticket', icon: 'uil:message', title: 'ticket', image: 'ticket', }, ]; export function findNavByUrl(url: string) { for (const nav of navs) { if (nav.url && nav.url === url) { return [nav]; } } return []; } export const navItems = [ { url: '/profile', icon: 'uil:user', title: 'profile', }, { url: '/subscribe', icon: 'uil:shop', title: 'subscribe', }, { url: '/order', icon: 'uil:notes', title: 'order', }, { url: '/wallet', icon: 'uil:wallet', title: 'wallet', }, ];