MED-137: add doctor other jobs view (#55)
* add doctor jobs view * change translation * another translation change * clean up * add analaysis detail view to paths config * translation * merge fix * fix path * move components to shared * refactor * imports * clean up
This commit is contained in:
31
packages/shared/src/components/package-header.tsx
Normal file
31
packages/shared/src/components/package-header.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { formatCurrency } from '@kit/shared/utils';
|
||||
import { Badge } from '@kit/ui/badge';
|
||||
import { cn } from '@kit/ui/utils';
|
||||
|
||||
export const PackageHeader = ({
|
||||
title,
|
||||
tagColor,
|
||||
analysesNr,
|
||||
language,
|
||||
price,
|
||||
}: {
|
||||
title: string;
|
||||
tagColor: string;
|
||||
analysesNr: string;
|
||||
language: string;
|
||||
price: string | number;
|
||||
}) => {
|
||||
return (
|
||||
<div className="space-y-1 text-center">
|
||||
<p className="text-sm sm:text-lg sm:font-medium">{title}</p>
|
||||
<h2 className="text-xl sm:text-4xl">
|
||||
{formatCurrency({
|
||||
currencyCode: 'eur',
|
||||
locale: language,
|
||||
value: price,
|
||||
})}
|
||||
</h2>
|
||||
<Badge className={cn('text-xs', tagColor)}>{analysesNr}</Badge>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user