Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 32 additions & 27 deletions components/dashboard-chrome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
SidebarHeader,
SidebarInset,
SidebarNav,
LumyxLinkProvider,

Check failure on line 21 in components/dashboard-chrome.tsx

View workflow job for this annotation

GitHub Actions / check

Module '"@lumyx/ui"' has no exported member 'LumyxLinkProvider'.
SidebarProvider,
StatusStrip,
Wordmark,
type NavSection,
} from '@lumyx/ui';
import Link from 'next/link';
import { usePathname } from 'next/navigation';

const SECTIONS: NavSection[] = [
{
Expand Down Expand Up @@ -53,33 +55,36 @@
];

export function DashboardChrome({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
return (
<SidebarProvider open onOpenChange={() => {}}>
<Sidebar collapsible="offcanvas" className="border-hairline">
<SidebarHeader className="px-3 py-4">
<Link href="/" className="px-2 no-underline hover:no-underline">
<Wordmark />
</Link>
</SidebarHeader>
<SidebarContent className="sl-scroll px-3">
<SidebarNav sections={SECTIONS} ariaLabel="Main navigation" />
</SidebarContent>
<SidebarFooter className="px-5 py-4">
<span className="sl-num text-11 text-faint">v0.4.1 · MIT licensed · sfu-eu-3</span>
</SidebarFooter>
</Sidebar>
<SidebarInset className="grid h-svh grid-rows-[auto_1fr_auto] overflow-hidden">
{children}
<StatusStrip
items={[
{ label: 'Signaling', value: 'wss://127.0.0.1:3000/ws', live: true },
{ label: 'Rooms', value: '4' },
{ label: 'Peers', value: '65' },
{ label: 'Alerts', value: '4' },
{ label: 'Retention', value: '7d' },
]}
/>
</SidebarInset>
</SidebarProvider>
<LumyxLinkProvider link={Link} pathname={pathname}>
<SidebarProvider open onOpenChange={() => {}}>
<Sidebar collapsible="offcanvas" className="border-hairline">
<SidebarHeader className="px-3 py-4">
<Link href="/" className="px-2 no-underline hover:no-underline">
<Wordmark />
</Link>
</SidebarHeader>
<SidebarContent className="sl-scroll px-3">
<SidebarNav sections={SECTIONS} ariaLabel="Main navigation" />
</SidebarContent>
<SidebarFooter className="px-5 py-4">
<span className="sl-num text-11 text-faint">v0.4.1 · AGPL-3.0 · sfu-eu-3</span>
</SidebarFooter>
</Sidebar>
<SidebarInset className="grid h-svh grid-rows-[auto_1fr_auto] overflow-hidden">
{children}
<StatusStrip
items={[
{ label: 'Signaling', value: 'wss://127.0.0.1:3000/ws', live: true },
{ label: 'Rooms', value: '4' },
{ label: 'Peers', value: '65' },
{ label: 'Alerts', value: '4' },
{ label: 'Retention', value: '7d' },
]}
/>
</SidebarInset>
</SidebarProvider>
</LumyxLinkProvider>
);
}
Loading