diff --git a/src/shared/Tag.tsx b/src/shared/Tag.tsx new file mode 100644 index 0000000..41813b9 --- /dev/null +++ b/src/shared/Tag.tsx @@ -0,0 +1,26 @@ +import { TaxonomyType } from "@/data/types"; +import { Route } from "@/routers/types"; +import Link from "next/link"; +import React, { FC } from "react"; + +export interface TagProps { + className?: string; + tag: TaxonomyType; + hideCount?: boolean; +} + +const Tag: FC = ({ className = "", tag, hideCount = false }) => { + return ( + + {`${tag.name}`} + {!hideCount && ( + ({tag.count}) + )} + + ); +}; + +export default Tag;