+
-
- {page.tags
- ?.filter((tag) => tag !== "post" && tag !== "page")
- .map((tag) => (
-
- <>#{tag}>
-
- ))}
-
-
ยท
+ {page.tags?.filter((tag) => tag !== "post" && tag !== "page").length ? (
+ <>
+
+ {page.tags
+ ?.filter((tag) => tag !== "post" && tag !== "page")
+ .map((tag) => (
+
+ <>#{tag}>
+
+ ))}
+
+ >
+ ) : null}
+ {author.data?.[0].username &&
+ site?.username !== author.data?.[0].username && (
+ <>
+
+
+
+
+ {author.data[0].name}
+
+
+
+ >
+ )}
url.startsWith(CSB_SCAN + "/tx/"),
)?.[0]
}
>
-
+
)
diff --git a/src/components/site/SitePage.tsx b/src/components/site/SitePage.tsx
index 2448c4cd..b204a7a8 100644
--- a/src/components/site/SitePage.tsx
+++ b/src/components/site/SitePage.tsx
@@ -1,11 +1,12 @@
import { PageContent } from "../common/PageContent"
import { PostMeta } from "./PostMeta"
import { PostFooter } from "./PostFooter"
-import { Note } from "~/lib/types"
+import { Note, Profile } from "~/lib/types"
export const SitePage: React.FC<{
page?: Note | null
-}> = ({ page }) => {
+ site?: Profile | null
+}> = ({ page, site }) => {
return (
<>
{page?.preview && (
@@ -22,7 +23,7 @@ export const SitePage: React.FC<{
{page?.title}
)}
- {page?.tags?.includes("post") &&
}
+ {page?.tags?.includes("post") &&
}