'use client'; import { useState, useEffect } from 'react'; export function RightSidebar() { const [nodeInfo, setNodeInfo] = useState({ name: process.env.NEXT_PUBLIC_NODE_NAME || 'Synapsis Node', description: 'A federated social network designed as global communication infrastructure. Signal over noise. Identity that is truly yours.', longDescription: '', rules: '', bannerUrl: '', }); useEffect(() => { fetch('/api/node') .then(res => res.json()) .then(data => { if (data.name) { setNodeInfo(prev => ({ ...prev, ...data })); } }) .catch(() => { }); }, []); return ( ); }