diff --git a/src/components/PostCardMetaV2.tsx b/src/components/PostCardMetaV2.tsx new file mode 100644 index 0000000..4bd26c6 --- /dev/null +++ b/src/components/PostCardMetaV2.tsx @@ -0,0 +1,64 @@ +import React, { FC } from "react"; +import Avatar from "@/shared/Avatar"; +import { PostDataType } from "@/data/types"; +import Link from "next/link"; + +export interface PostCardMetaV2Props { + className?: string; + meta: Pick; + hiddenAvatar?: boolean; + size?: "large" | "normal"; +} + +const PostCardMetaV2: FC = ({ + className = "leading-none", + meta, + hiddenAvatar = false, + size = "normal", +}) => { + const { date, author, title } = meta; + return ( +
+ + {!hiddenAvatar && ( + + )} +
+

+ {title} +

+ +
+ + {author.displayName} + + + ยท + + + {date} + +
+
+ +
+ ); +}; + +export default PostCardMetaV2;