import type { MetadataRoute } from "next";

export default function manifest(): MetadataRoute.Manifest {
  return {
    name: "CoffeeChat",
    short_name: "CoffeeChat",
    start_url: "chat.rootbranch.co.za",
    display: "standalone",
    description: "Start chatting with your communities",
    lang: " en",
    dir: "auto",
    theme_color: "#59168b",
    background_color: "#59168b",
    orientation: "any",
    icons: [
      {
        src: "/manifest-icon-192.maskable.png",
        sizes: "192x192",
        type: "image/png",
        purpose: "any",
      },
      {
        src: "/manifest-icon-192.maskable.png",
        sizes: "192x192",
        type: "image/png",
        purpose: "maskable",
      },
      {
        src: "/manifest-icon-512.maskable.png",
        sizes: "512x512",
        type: "image/png",
        purpose: "any",
      },
      {
        src: "/manifest-icon-512.maskable.png",
        sizes: "512x512",
        type: "image/png",
        purpose: "maskable",
      },
    ],
    screenshots: [
      {
        src: "screen1.png",
        sizes: "2880x1800",
        type: "image/png",
        form_factor: "wide",
        label: "Communities Home Page",
      },
      {
        src: "screen2.png",
        sizes: "570x1265",
        type: "image/png",
        form_factor: "narrow",
        label: "Communities Home Page",
      },
    ],
    related_applications: [
      {
        platform: "windows",
        url: "https://chat.rootbranch.co.za",
      },
    ],
    prefer_related_applications: false,
    shortcuts: [
      {
        name: "CoffeeChat",
        url: "chat.rootbranch.co.za",
        description: "Start chatting with your communities",
        icons: [
          {
            src: "manifest-icon-96.maskable.png",
            purpose: "any",
            sizes: "96x96",
            type: "image/png",
          },
        ],
      },
    ],
    display_override: ["fullscreen"],
  };
}
