diff --git a/src/components/CardAuthorBox2.tsx b/src/components/CardAuthorBox2.tsx new file mode 100644 index 0000000..3acaea4 --- /dev/null +++ b/src/components/CardAuthorBox2.tsx @@ -0,0 +1,77 @@ +import React, { FC } from "react"; +import { AuthorType } from "@/data/types"; +import { ArrowRightIcon } from "@heroicons/react/24/solid"; +import Avatar from "@/shared/Avatar"; +import convertNumbThousand from "@/utils/convertNumbThousand"; +import Link from "next/link"; +import Image from "next/image"; + +export interface CardAuthorBox2Props { + className?: string; + author: AuthorType; +} + +const CardAuthorBox2: FC = ({ + className = "", + author, +}) => { + const { displayName, href = "/", avatar, jobName, count, bgImage } = author; + return ( + +
+
+ +
+
+
+ {convertNumbThousand(count)}{" "} + +
+
+
+
+ + + + + + +
+

+ {displayName} +

+ + @{jobName} + +
+
+ + ); +}; + +export default CardAuthorBox2;