diff --git a/app/(home-pages)/notifications/Notification.tsx b/app/(home-pages)/notifications/Notification.tsx
index b94d9b6c..5ca9d9ef 100644
--- a/app/(home-pages)/notifications/Notification.tsx
+++ b/app/(home-pages)/notifications/Notification.tsx
@@ -1,58 +1,17 @@
import { Avatar } from "components/Avatar";
import { BaseTextBlock } from "app/lish/[did]/[publication]/[rkey]/BaseTextBlock";
-import { CommentTiny } from "components/Icons/CommentTiny";
-import { ReplyTiny } from "components/Icons/ReplyTiny";
import { PubLeafletRichtextFacet } from "lexicons/api";
-import { MentionTiny } from "components/Icons/MentionTiny";
-import { PubIcon } from "components/ActionBar/Publications";
export const Notification = (props: {
- identity: string;
- action:
- | { type: "comment" }
- | { type: "reply" }
- | { type: "follow"; avatar: string | undefined; pubName: string }
- | { type: "post-mention" }
- | { type: "user-mention" };
-
+ icon: React.ReactNode;
+ actionText: React.ReactNode;
content?: React.ReactNode;
}) => {
return (
-
- {props.action.type === "comment" ? (
-
- ) : props.action.type === "reply" ? (
-
- ) : props.action.type === "follow" ? (
-
- ) : props.action.type === "post-mention" ? (
-
- ) : props.action.type === "user-mention" ? (
-
- ) : (
- ""
- )}
-
-
- {props.identity}{" "}
- {props.action.type === "comment"
- ? "commented on your post"
- : props.action.type === "reply"
- ? "replied to your comment"
- : props.action.type === "follow"
- ? `followed ${props.action.pubName}!`
- : props.action.type === "post-mention"
- ? `mentioned your post`
- : props.action.type === "user-mention"
- ? "mentioned you"
- : "did something!"}
-
+
{props.icon}
+
{props.actionText}
{props.content && (
diff --git a/app/(home-pages)/notifications/ReplyNotification.tsx b/app/(home-pages)/notifications/ReplyNotification.tsx
index d32b7cc8..f272905e 100644
--- a/app/(home-pages)/notifications/ReplyNotification.tsx
+++ b/app/(home-pages)/notifications/ReplyNotification.tsx
@@ -1,5 +1,6 @@
import { Avatar } from "components/Avatar";
import { BaseTextBlock } from "app/lish/[did]/[publication]/[rkey]/BaseTextBlock";
+import { ReplyTiny } from "components/Icons/ReplyTiny";
import {
CommentInNotification,
ContentLayout,
@@ -9,8 +10,8 @@ import {
export const DummyReplyNotification = () => {
return (
}
+ actionText={<>jared replied to your comment>}
content={