import type { MetadataRoute } from "next";
import { siteConfig } from "@/lib/site";

/**
 * Web app manifest — dideteksi otomatis oleh Next App Router (`<link
 * rel="manifest">` di-inject). Mendukung "Add to Home Screen" di mobile.
 */
export default function manifest(): MetadataRoute.Manifest {
  return {
    name: `${siteConfig.name} — ${siteConfig.slogan}`,
    short_name: siteConfig.name,
    description: siteConfig.description,
    start_url: "/",
    display: "standalone",
    background_color: "#f9fafb",
    theme_color: "#16a34a",
    icons: [
      {
        src: "/images/SeTrip.png",
        sizes: "512x512",
        type: "image/png",
        purpose: "any",
      },
      {
        src: "/SeTrip.ico",
        sizes: "any",
        type: "image/x-icon",
      },
    ],
  };
}
