import { PublicInfoPage } from "@/components/auth/public-info-page";
import { getCurrentLocale } from "@/lib/i18n-server";

export default async function HelpPublicPage() {
  const locale = await getCurrentLocale();

  return (
    <PublicInfoPage
      title={locale === "id" ? "Bantuan" : "Help"}
      description={
        locale === "id"
          ? "Panduan singkat ini membantu pengguna yang belum bisa login, perlu reset password, atau membutuhkan bantuan operasional dari tim admin."
          : "This quick guide helps users who cannot sign in yet, need a password reset, or require operational assistance from the admin."
      }
      sections={[
        {
          title: locale === "id" ? "Reset password" : "Reset password",
          paragraphs:
            locale === "id"
              ? [
                  "Gunakan form bantuan login di halaman masuk untuk mengirim link reset password ke email yang sudah terdaftar.",
                  "Pastikan alamat email yang dimasukkan sama dengan email akun operasional Anda."
                ]
              : [
                  "Use the login support form on the sign-in page to send a password reset link to the registered email.",
                  "Make sure the email address matches the operational account email."
                ]
        },
        {
          title: locale === "id" ? "Verifikasi email" : "Email verification",
          paragraphs:
            locale === "id"
              ? [
                  "Jika akun baru belum bisa dipakai login, kirim ulang verifikasi email dari halaman login.",
                  "Setelah email diverifikasi, login dapat dilakukan dengan email atau username yang aktif."
                ]
              : [
                  "If a new account cannot be used yet, resend the verification email from the login page.",
                  "After the email is verified, users can sign in with the active email or username."
                ]
        },
        {
          title: locale === "id" ? "Hubungi admin" : "Contact admin",
          paragraphs:
            locale === "id"
              ? [
                  "Untuk masalah akses role, pembuatan akun baru, atau force reset password, gunakan form Hubungi Admin yang tersedia di halaman login.",
                  "Jangan kirim password aktif melalui email atau pesan teks."
                ]
              : [
                  "For role access issues, new account requests, or force password reset requests, use the Contact Admin form available on the login page.",
                  "Do not send active passwords by email or text message."
                ]
        }
      ]}
    />
  );
}
