Renames all domain terminology from "Server" to "Space" throughout the application — database schema, API routes, shared types, stores, components, and UI strings. Files renamed: ServerSidebar → SpaceSidebar, CreateServer → CreateSpace, JoinServer → JoinSpace, ServerSettings → SpaceSettings, serverStore → spaceStore, routes/servers → routes/spaces.
17 lines
480 B
TypeScript
17 lines
480 B
TypeScript
import React from 'react';
|
|
import { MemberSidebar } from './MemberSidebar';
|
|
import { ActivityPanel } from './ActivityPanel';
|
|
import { useUIStore } from '../../stores/uiStore';
|
|
import { useSpaceStore } from '../../stores/spaceStore';
|
|
|
|
export function RightPanel() {
|
|
const showDms = useUIStore((s) => s.showDms);
|
|
const currentSpaceId = useSpaceStore((s) => s.currentSpaceId);
|
|
|
|
if (showDms || !currentSpaceId) {
|
|
return <ActivityPanel />;
|
|
}
|
|
|
|
return <MemberSidebar />;
|
|
}
|