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

+ {name} +

+ + {convertNumbThousand(count || 0)} + {` `} + {(!listingType || listingType === "stay") && "properties"} + {listingType === "car" && "cars"} + {listingType === "experiences" && "experiences"} + +
+ + ); +}; + +export default CardCategory4;