From 80002bd3da09e00c876ba1f8da2b152f8b7ced1d Mon Sep 17 00:00:00 2001 From: John Doe Date: Mon, 11 Sep 2023 17:16:55 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20Added=20CardCategory5=20componen?= =?UTF-8?q?t=20=F0=9F=94=A7=20Updated=20component=20for=20better=20perform?= =?UTF-8?q?ance=20=F0=9F=93=B8=20Improved=20image=20handling=20?= =?UTF-8?q?=F0=9F=A9=B9=20Fixed=20minor=20issues=20=F0=9F=9A=80=20Ready=20?= =?UTF-8?q?to=20test=20and=20deploy!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CardCategory5.tsx | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/components/CardCategory5.tsx diff --git a/src/components/CardCategory5.tsx b/src/components/CardCategory5.tsx new file mode 100644 index 0000000..41a8d2d --- /dev/null +++ b/src/components/CardCategory5.tsx @@ -0,0 +1,51 @@ +import React, { FC } from "react"; +import { TaxonomyType } from "@/data/types"; +import convertNumbThousand from "@/utils/convertNumbThousand"; +import Link from "next/link"; +import Image from "next/image"; + +export interface CardCategory5Props { + className?: string; + taxonomy: TaxonomyType; +} + +const CardCategory5: FC = ({ + className = "", + taxonomy, +}) => { + const { count, name, href = "/", thumbnail } = taxonomy; + return ( + +
+ + +
+
+

+ {name} +

+ + {convertNumbThousand(count)} properties + +
+ + ); +}; + +export default CardCategory5;