'use client';
import { useTranslations } from 'next-intl';
import { ROUTES } from '@/constants';
import { useAdminCapabilities } from '@/hooks';
import AdminGroupHub from '../_hub/AdminGroupHub';

/** «اعتماد» group root — the verification queue and review moderation. */
export default function AdminTrustPage() {
  const t = useTranslations('hub');
  const tn = useTranslations('nav');
  const caps = useAdminCapabilities();

  return (
    <AdminGroupHub
      title={tn('group_trust')}
      subtitle={t('admin_trust_subtitle')}
      consoles={[
        {
          title: tn('verification'),
          subtitle: t('admin_verification_sub'),
          icon: 'verification',
          path: ROUTES.ADMIN_VERIFICATION,
          enabled: caps.canVerify,
        },
        {
          title: tn('reviews'),
          subtitle: t('admin_reviews_sub'),
          icon: 'moderation',
          path: ROUTES.ADMIN_REVIEWS,
          enabled: caps.canModerate,
        },
      ]}
    />
  );
}
