diff --git a/src/components/CardCategoryBox1.tsx b/src/components/CardCategoryBox1.tsx new file mode 100644 index 0000000..d07e538 --- /dev/null +++ b/src/components/CardCategoryBox1.tsx @@ -0,0 +1,51 @@ +import React, { FC } from "react"; +import { TaxonomyType } from "@/data/types"; +import Badge from "@/shared/Badge"; +import convertNumbThousand from "@/utils/convertNumbThousand"; +import Link from "next/link"; +import Image from "next/image"; + +export interface CardCategoryBox1Props { + className?: string; + taxonomy: TaxonomyType; +} + +const CardCategoryBox1: FC = ({ + className = "", + taxonomy, +}) => { + const { count, name, thumbnail, href = "/" } = taxonomy; + return ( + + + +
+ +
+
+

+ {name} +

+ + 19 minutes drive + +
+ + ); +}; + +export default CardCategoryBox1;