feat(MED-131): display analyses options and add to cart

This commit is contained in:
2025-08-04 11:51:49 +03:00
parent 8c4df731aa
commit b665678dbb
5 changed files with 142 additions and 6 deletions

View File

@@ -3,6 +3,8 @@ 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';
import { loadAnalyses } from '../../_lib/server/load-analyses';
import OrderAnalysesCards from '../../_components/order-analyses-cards';
export const generateMetadata = async () => {
const { t } = await createI18nServerInstance();
@@ -13,6 +15,8 @@ export const generateMetadata = async () => {
};
async function OrderAnalysisPage() {
const { analyses, countryCode } = await loadAnalyses();
return (
<>
<HomeLayoutPageHeader
@@ -20,6 +24,7 @@ async function OrderAnalysisPage() {
description={<Trans i18nKey={'order-analysis:description'} />}
/>
<PageBody>
<OrderAnalysesCards analyses={analyses} countryCode={countryCode} />
</PageBody>
</>
);