diff --git a/src/app/blog/WidgetCategories.tsx b/src/app/blog/WidgetCategories.tsx new file mode 100644 index 0000000..3a14e00 --- /dev/null +++ b/src/app/blog/WidgetCategories.tsx @@ -0,0 +1,42 @@ +import CardCategory1 from "@/components/CardCategory1"; +import { DEMO_CATEGORIES } from "@/data/taxonomies"; +import { TaxonomyType } from "@/data/types"; +import React, { FC } from "react"; +import WidgetHeading1 from "./WidgetHeading1"; + +export interface WidgetCategoriesProps { + className?: string; + categories?: TaxonomyType[]; +} + +const categoriesDemo: TaxonomyType[] = DEMO_CATEGORIES.filter((_, i) => i < 5); + +const WidgetCategories: FC = ({ + className = "bg-neutral-100 dark:bg-neutral-800", + categories = categoriesDemo, +}) => { + return ( +
+ +
+
+ {categories.map((category) => ( + + ))} +
+
+
+ ); +}; + +export default WidgetCategories;