diff --git a/src/components/PostWarning.tsx b/src/components/PostWarning.tsx new file mode 100644 index 0000000..f476c67 --- /dev/null +++ b/src/components/PostWarning.tsx @@ -0,0 +1,22 @@ +interface PostWarningsProps { + type: 'user' | 'admin' +} + +export const PostWarnings = ({ type }: PostWarningsProps) => ( +
+ {type === 'admin' ? (
+ <>
+ Warning: This post has been blocked/hidden by the site for one of the
+ following reasons:
+
+ Malware, Not a Mod, Illegal, Spam, Verified Report of Unauthorized
+ Repost.
+
+ >
+ ) : (
+ <>Notice: You have blocked this post>
+ )}
+