import type { JSX, SVGProps } from 'react'

import { FacebookIcon } from '~/components/icons/facebook'
import { InstagramIcon } from '~/components/icons/instagram'
import { LinkedinIcon } from '~/components/icons/linkedin'
import { XIcon } from '~/components/icons/x'

type TMenu = {
  title: string
  url: string
  icon?: (
    properties: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>,
  ) => JSX.Element
}

type TFooterMenu = {
  group: string
  items: TMenu[]
}

export const MENU: TMenu[] = [
  {
    title: 'Spotlight',
    url: '/news/category/spotlight',
  },
  {
    title: 'Berita',
    url: '/news/category/berita',
  },
  {
    title: 'Kasus',
    url: '/news/category/kasus',
  },
  {
    title: 'Kajian',
    url: '/news/category/kajian',
  },
  {
    title: 'Lifestyle',
    url: '/news/category/lifestyle',
  },
  {
    title: 'Event',
    url: '/news/category/event',
  },
  {
    title: 'Travel',
    url: '/news/category/travel',
  },
]

export const FOOTER_MENU: TFooterMenu[] = [
  {
    group: 'About Us',
    items: [
      {
        title: 'Popular',
        url: '/news/list?sort=popular',
      },
      {
        title: 'Trending',
        url: '/news/list?sort=trending',
      },
      {
        title: 'Contact',
        url: '/news/contact',
      },
      {
        title: 'Support/Help',
        url: '/news/support',
      },
      {
        title: 'Rquest Topic',
        url: '/news/request-topic',
      },
    ],
  },
  {
    group: 'Column Two',
    items: [
      {
        title: 'FAQs',
        url: '/news/faq',
      },
      {
        title: 'Terms and Condition',
        url: '/news/terms-condition',
      },
      {
        title: 'Support',
        url: '/news/support',
      },
      {
        title: 'Link Nine',
        url: '/news',
      },
      {
        title: 'Link Ten',
        url: '/news',
      },
    ],
  },
  {
    group: 'Follow Us',
    items: [
      {
        title: 'Facebook',
        icon: FacebookIcon,
        url: 'https://facebook.com',
      },
      {
        title: 'Instagram',
        icon: InstagramIcon,
        url: 'https://instagram.com',
      },
      {
        title: 'X',
        icon: XIcon,
        url: 'https://x.com',
      },
      {
        title: 'Linkedin',
        icon: LinkedinIcon,
        url: 'https://linkedin.com',
      },
    ],
  },
]

export const COPYRIGHT_MENU: TMenu[] = [
  {
    title: 'Privacy Policy',
    url: '/news/privacy-policy',
  },
  {
    title: 'Terms of Service',
    url: '/news/terms-of-service',
  },
  {
    title: 'Cookies Settings',
    url: '/news/cookies-settings',
  },
]
