import type { Metadata } from 'next';
import * as Sentry from '@sentry/nextjs';

export const generateMetadata = (): Metadata => {
  return {
    title: {
      template: '%s | Convex Monorepo',
      default: 'Convex Monorepo',
    },
    description: 'A Convex Monorepo with Next.js & Expo',
    applicationName: 'Convex Monorepo',
    keywords:
      'Convex Monorepo,T3 Template, Nextjs, ' +
      'Tailwind, TypeScript, React, T3, Gib',
    authors: [{ name: 'Gib', url: 'https://gbrown.org' }],
    creator: 'Gib Brown',
    publisher: 'Gib Brown',
    formatDetection: {
      email: false,
      address: false,
      telephone: false,
    },
    robots: {
      index: true,
      follow: true,
      nocache: false,
      googleBot: {
        index: true,
        follow: true,
        noimageindex: false,
        'max-video-preview': -1,
        'max-image-preview': 'large',
        'max-snippet': -1,
      },
    },
    icons: {
      icon: [
        { url: '/favicon.png', type: 'image/png', sizes: 'any' },
        {
          url: '/favicon-light.png',
          type: 'image/png',
          sizes: 'any',
          media: '(prefers-color-scheme: dark)',
        },
        //{
        //url: '/appicon/icon.png',
        //type: 'image/png',
        //sizes: '192x192',
        //},
        //{
        //url: '/appicon/icon.png',
        //type: 'image/png',
        //sizes: '192x192',
        //media: '(prefers-color-scheme: dark)',
        //},
      ],
      //shortcut: [
      //{
      //url: '/appicon/icon.png',
      //type: 'image/png',
      //sizes: '192x192',
      //},
      //{
      //url: '/appicon/icon.png',
      //type: 'image/png',
      //sizes: '192x192',
      //media: '(prefers-color-scheme: dark)',
      //},
      //],
      //apple: [
      //{
      //url: 'appicon/icon.png',
      //type: 'image/png',
      //sizes: '192x192',
      //},
      //{
      //url: 'appicon/icon.png',
      //type: 'image/png',
      //sizes: '192x192',
      //media: '(prefers-color-scheme: dark)',
      //},
      //],
      //other: [
      //{
      //rel: 'apple-touch-icon-precomposed',
      //url: '/appicon/icon-precomposed.png',
      //type: 'image/png',
      //sizes: '180x180',
      //},
      //],
    },
    other: {
      ...Sentry.getTraceData(),
    },
    //appleWebApp: {
    //title: 'Convex Monorepo',
    //statusBarStyle: 'black-translucent',
    //startupImage: [
    //'/icons/apple/splash-768x1004.png',
    //{
    //url: '/icons/apple/splash-1536x2008.png',
    //media: '(device-width: 768px) and (device-height: 1024px)',
    //},
    //],
    //},
    verification: {
      google: 'google',
      yandex: 'yandex',
      yahoo: 'yahoo',
    },
    category: 'technology',
    /*
		appLinks: {
			ios: {
				url: 'https://techtracker.gbrown.org/ios',
				app_store_id: 'com.gbrown.techtracker',
			},
			android: {
				package: 'https://techtracker.gbrown.org/android',
				app_name: 'app_t3_template',
			},
			web: {
				url: 'https://techtracker.gbrown.org',
				should_fallback: true,
			},
		},
		 */
  };
};
