Files
llink/js/desktop/src/features/network-root.tsx
T
Arjun PatelandGitHub 095b9876f9 feat: stream list view and tasks (#279)
* first attempt at stream sidebar, tasks, and events

* fix folder from root

* cleanup folders and events, and condense changes

* cleanup and add toggle for sidebar

* cleanup

* fix nits
2026-06-12 12:26:49 -07:00

16 lines
554 B
TypeScript

import { useParams } from 'react-router-dom';
import { particlePath } from '@/lib/particle-path';
import { ContainerView } from '@/features/particles/container-view';
/**
* Route-level component for /:networkId (index). The network root behaves
* like a folder: a container of streams, folders, and loose particles.
*/
export default function NetworkRoot() {
const { networkId } = useParams();
if (!networkId)
throw new Error('NetworkRoot requires a :networkId route param');
return <ContainerView path={particlePath(networkId, [])} />;
}