diff --git a/app/home/(user)/_components/dashboard-recommendations.tsx b/app/home/(user)/_components/dashboard-recommendations.tsx
new file mode 100644
index 0000000..f33aeaf
--- /dev/null
+++ b/app/home/(user)/_components/dashboard-recommendations.tsx
@@ -0,0 +1,128 @@
+'use client';
+
+import Link from 'next/link';
+
+import { BlendingModeIcon } from '@radix-ui/react-icons';
+import {
+ Droplets,
+} from 'lucide-react';
+
+import { InfoTooltip } from '@kit/shared/components/ui/info-tooltip';
+import { Button } from '@kit/ui/button';
+import {
+ Card,
+ CardContent,
+ CardHeader,
+} from '@kit/ui/card';
+import { Trans } from '@kit/ui/trans';
+import { cn } from '@kit/ui/utils';
+
+const dummyRecommendations = [
+ {
+ icon: ,
+ color: 'bg-cyan/10 text-cyan',
+ title: 'Kolesterooli kontroll',
+ description: 'HDL-kolestrool',
+ tooltipContent: 'Selgitus',
+ price: '20,00 €',
+ buttonText: 'Telli',
+ href: '/home/booking',
+ },
+ {
+ icon: ,
+ color: 'bg-primary/10 text-primary',
+ title: 'Kolesterooli kontroll',
+ tooltipContent: 'Selgitus',
+ description: 'LDL-Kolesterool',
+ buttonText: 'Broneeri',
+ href: '/home/booking',
+ },
+ {
+ icon: ,
+ color: 'bg-destructive/10 text-destructive',
+ title: 'Vererõhu kontroll',
+ tooltipContent: 'Selgitus',
+ description: 'Score-Risk 2',
+ price: '20,00 €',
+ buttonText: 'Telli',
+ href: '/home/booking',
+ },
+];
+
+export default function DashboardRecommendations() {
+ return (
+
+
+
+
+
+
+
+ {dummyRecommendations.map(
+ (
+ {
+ icon,
+ color,
+ title,
+ description,
+ tooltipContent,
+ price,
+ buttonText,
+ href,
+ },
+ index,
+ ) => {
+ return (
+
+
+
+ {icon}
+
+
+
+ {title}
+
+
+
+ {description}
+
+
+
+
+
{price}
+ {href ? (
+
+
+
+ ) : (
+
+ )}
+
+
+ );
+ },
+ )}
+
+
+ );
+}
diff --git a/app/home/(user)/_components/dashboard.tsx b/app/home/(user)/_components/dashboard.tsx
index 9c101dc..4d6d260 100644
--- a/app/home/(user)/_components/dashboard.tsx
+++ b/app/home/(user)/_components/dashboard.tsx
@@ -9,20 +9,17 @@ import {
Activity,
ChevronRight,
Clock9,
- Droplets,
Pill,
Scale,
TrendingUp,
User,
} from 'lucide-react';
-import { InfoTooltip } from '@kit/shared/components/ui/info-tooltip';
import { pathsConfig } from '@kit/shared/config';
import { getPersonParameters } from '@kit/shared/utils';
import { Button } from '@kit/ui/button';
import {
Card,
- CardContent,
CardDescription,
CardFooter,
CardHeader,
@@ -38,6 +35,7 @@ import {
getBmiBackgroundColor,
getBmiStatus,
} from '~/lib/utils';
+import DashboardRecommendations from './dashboard-recommendations';
const getCardVariant = (isSuccess: boolean | null): CardProps['variant'] => {
if (isSuccess === null) return 'default';
@@ -135,37 +133,7 @@ const cards = ({
},
];
-const dummyRecommendations = [
- {
- icon: ,
- color: 'bg-cyan/10 text-cyan',
- title: 'Kolesterooli kontroll',
- description: 'HDL-kolestrool',
- tooltipContent: 'Selgitus',
- price: '20,00 €',
- buttonText: 'Telli',
- href: '/home/booking',
- },
- {
- icon: ,
- color: 'bg-primary/10 text-primary',
- title: 'Kolesterooli kontroll',
- tooltipContent: 'Selgitus',
- description: 'LDL-Kolesterool',
- buttonText: 'Broneeri',
- href: '/home/booking',
- },
- {
- icon: ,
- color: 'bg-destructive/10 text-destructive',
- title: 'Vererõhu kontroll',
- tooltipContent: 'Selgitus',
- description: 'Score-Risk 2',
- price: '20,00 €',
- buttonText: 'Telli',
- href: '/home/booking',
- },
-];
+const IS_SHOWN_RECOMMENDATIONS = false as boolean;
export default function Dashboard({
account,
@@ -232,79 +200,7 @@ export default function Dashboard({
),
)}
-
-
-
-
-
-
-
- {dummyRecommendations.map(
- (
- {
- icon,
- color,
- title,
- description,
- tooltipContent,
- price,
- buttonText,
- href,
- },
- index,
- ) => {
- return (
-
-
-
- {icon}
-
-
-
- {title}
-
-
-
- {description}
-
-
-
-
-
{price}
- {href ? (
-
-
-
- ) : (
-
- )}
-
-
- );
- },
- )}
-
-
+ {IS_SHOWN_RECOMMENDATIONS && }
>
);
}