diff --git a/js/src/features/compose/controls-indicator.tsx b/js/src/features/compose/controls-indicator.tsx
index e46da0a..42da631 100644
--- a/js/src/features/compose/controls-indicator.tsx
+++ b/js/src/features/compose/controls-indicator.tsx
@@ -43,7 +43,6 @@ export default function ControlsIndicator({ type, children }: ControlsIndicatorP
{children ?
@@ -456,6 +406,65 @@ export function StreamView({ path, streamParticle }: StreamViewProps) {
);
}
+function TopBar({ networkId, particle, streamParticle }: { networkId: string; particle: Particle; streamParticle: Particle & { type: "stream" } }) {
+ const navigate = useNavigate();
+
+ return (
+
+
+
+
+
+
+ navigate("/")}
+ >
+
+
+
+
+
+ navigate(`/${networkId}`)}
+ >
+
+
+
+
+ {streamParticle && (
+ <>
+
+
+ {getParticleDisplayName(streamParticle)}
+
+ >
+ )}
+
+ {particle && (
+ <>
+
+
+
+
+ >
+ )}
+
+
+
+
+
+ );
+}
+
function NetworkBreadcrumbContent({ networkId }: { networkId: string }) {
const { data: networks } = useNetworks();
const network = networks?.find((n) => n.id === networkId);
@@ -480,13 +489,14 @@ function ParticleBreadcrumbContent({ particle }: { particle: Particle }) {
const initials = createdByEmail.slice(0, 2).toUpperCase();
return (
-
+
{initials}
- {prefix}
+ {prefix} - {formatDistanceToNow(particle.created_at.toISOString())}
)
}