import { getTranslations } from 'next-intl/server';

import { VerbandTabNavigation } from '@kit/verbandsverwaltung/components';

import { CmsPageShell } from '~/components/cms-page-shell';

import StatisticsContent from './_components/statistics-content';

interface Props {
  params: Promise<{ account: string }>;
}

export default async function StatisticsPage({ params }: Props) {
  const { account } = await params;
  const t = await getTranslations('verband');

  return (
    <CmsPageShell account={account} title={t('pages.statisticsTitle')}>
      <VerbandTabNavigation account={account} activeTab="statistics" />
      <StatisticsContent />
    </CmsPageShell>
  );
}
