'use client'; import Image from 'next/image'; import { useTranslation } from 'react-i18next'; import { Button } from '@kit/ui/button'; import { Card, CardContent, CardDescription, CardFooter, CardHeader, } from '@kit/ui/card'; import { Trans } from '@kit/ui/trans'; import { PackageHeader } from './package-header'; import { ButtonTooltip } from './ui/button-tooltip'; export interface IAnalysisPackage { titleKey: string; price: number; nrOfAnalyses: number | string; tagColor: string; descriptionKey: string; } const analysisPackages = [ { titleKey: 'product:standard.label', price: 40, nrOfAnalyses: 4, tagColor: 'bg-cyan', descriptionKey: 'marketing:standard.description', }, { titleKey: 'product:standardPlus.label', price: 85, nrOfAnalyses: 10, tagColor: 'bg-warning', descriptionKey: 'product:standardPlus.description', }, { titleKey: 'product:premium.label', price: 140, nrOfAnalyses: '12+', tagColor: 'bg-purple', descriptionKey: 'product:premium.description', }, ] satisfies IAnalysisPackage[]; export default function SelectAnalysisPackages() { const { t, i18n: { language }, } = useTranslation(); return (
{analysisPackages.length > 0 ? analysisPackages.map( ( { titleKey, price, nrOfAnalyses, tagColor, descriptionKey }, index, ) => { return ( background ); }, ) : (

)}
); }