import type { Metadata } from "next";
import { getTranslations } from "next-intl/server";

import { ImageMakerCta } from "@/components/image-maker/ImageMakerCta";
import { ImageMakerFeatures } from "@/components/image-maker/ImageMakerFeatures";
import { ImageMakerGallery } from "@/components/image-maker/ImageMakerGallery";
import { ImageMakerHero } from "@/components/image-maker/ImageMakerHero";
import { ImageMakerUseCases } from "@/components/image-maker/ImageMakerUseCases";
import { createPageMetadata } from "@/lib/metadata";

export async function generateMetadata(): Promise<Metadata> {
  const t = await getTranslations("auto.appImageMakerPage");
  return createPageMetadata({
    title: t("metaTitle"),
    description: t("metaDescription"),
    path: "/image-maker",
  });
}

export default function ImageMakerPage() {
  return (
    <main>
      <ImageMakerHero />
      <ImageMakerFeatures />
      <ImageMakerUseCases />
      <ImageMakerGallery />
      <ImageMakerCta />
    </main>
  );
}
