import { createI18nServerInstance } from '~/lib/i18n/i18n.server';
import { withI18n } from '~/lib/i18n/with-i18n';
import { PageBody } from '@kit/ui/page';
import { Trans } from '@kit/ui/trans';
import { HomeLayoutPageHeader } from '../../_components/home-page-header';

export const generateMetadata = async () => {
  const { t } = await createI18nServerInstance();

  return {
    title: t('order-analysis:title'),
  };
};

async function OrderAnalysisPage() {
  return (
    <>
      <HomeLayoutPageHeader
        title={<Trans i18nKey={'order-analysis:title'} />}
        description={<Trans i18nKey={'order-analysis:description'} />}
      />
      <PageBody>
      </PageBody>
    </>
  );
}

export default withI18n(OrderAnalysisPage);
