--- import { Icon } from 'astro-icon/components' import { DATABASE_UI_URL, LOGS_UI_URL } from 'astro:env/server' import BaseLayout from '../../layouts/BaseLayout.astro' import { cn } from '../../lib/cn' import type { ComponentProps } from 'astro/types' type AdminLink = { icon: ComponentProps['name'] title: string href: string classNames: { base?: string } } const adminLinks: AdminLink[] = [ { icon: 'ri:box-3-line', title: 'Services', href: '/admin/services', classNames: { base: 'text-green-300', }, }, { icon: 'ri:user-3-line', title: 'Users', href: '/admin/users', classNames: { base: 'text-red-300', }, }, { icon: 'ri:chat-4-line', title: 'Comments', href: '/admin/comments', classNames: { base: 'text-yellow-300', }, }, { icon: 'ri:lightbulb-line', title: 'Suggestions', href: '/admin/service-suggestions', classNames: { base: 'text-purple-300', }, }, { icon: 'ri:price-tag-3-line', title: 'Attributes', href: '/admin/attributes', classNames: { base: 'text-blue-300', }, }, { icon: 'ri:megaphone-line', title: 'Announcements', href: '/admin/announcements', classNames: { base: 'text-pink-300', }, }, { icon: 'ri:rocket-2-line', title: 'Releases', href: '/admin/releases', classNames: { base: 'text-orange-300', }, }, { icon: 'ri:database-2-line', title: 'Database', href: DATABASE_UI_URL, classNames: { base: 'text-gray-300', }, }, ...(LOGS_UI_URL ? [ { icon: 'ri:menu-search-line', title: 'Logs', href: LOGS_UI_URL, classNames: { base: 'text-cyan-300', }, }, ] : []), ] ---

Admin Dashboard