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;