diff --git a/src/components/CardCategory3.tsx b/src/components/CardCategory3.tsx new file mode 100644 index 0000000..e62ff53 --- /dev/null +++ b/src/components/CardCategory3.tsx @@ -0,0 +1,47 @@ +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 CardCategory3Props { + className?: string; + taxonomy: TaxonomyType; +} + +const CardCategory3: FC = ({ + className = "", + taxonomy, +}) => { + const { count, name, href = "/", thumbnail } = taxonomy; + return ( + +
+ places + +
+
+

+ {name} +

+ + {convertNumbThousand(count || 0)} properties + +
+ + ); +}; + +export default CardCategory3;