import { MENU as ADMIN_MENU } from '~/layouts/admin/menu'

export const APP = {
  title: 'LegalGo',
  description:
    'Bonus judex secundum aequum et\n bonum judicat et aequitatem stricto juri praefert',
  logo: '/images/logo.png',
}

type TMetaTitleConfig = {
  path: string
  title: string
}[]

export const META_TITLE_CONFIG: TMetaTitleConfig = [
  {
    path: '/',
    title: 'Home',
  },
  {
    path: '/lg-admin/auth/login',
    title: 'Login',
  },
  {
    path: '/lg-admin/auth/register',
    title: 'Register',
  },
  ...ADMIN_MENU.flatMap((menu) =>
    menu.items.map((item) => ({ path: item.url, title: item.title })),
  ),
]
