mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-10 14:04:51 +02:00
list roles, make sidebar component, responsive mobile settings menu selector
This commit is contained in:
parent
9c2e481d2b
commit
bb17d30c9e
25 changed files with 733 additions and 207 deletions
30
src/components/SidebarSettings.tsx
Normal file
30
src/components/SidebarSettings.tsx
Normal file
|
@ -0,0 +1,30 @@
|
|||
"use client";
|
||||
|
||||
import { SidebarNav } from "@app/components/sidebar-nav";
|
||||
|
||||
interface SideBarSettingsProps {
|
||||
children: React.ReactNode;
|
||||
sidebarNavItems: Array<{ title: string; href: string }>;
|
||||
disabled?: boolean;
|
||||
limitWidth?: boolean;
|
||||
}
|
||||
|
||||
export function SidebarSettings({
|
||||
children,
|
||||
sidebarNavItems,
|
||||
disabled,
|
||||
limitWidth,
|
||||
}: SideBarSettingsProps) {
|
||||
return (
|
||||
<div className="space-y-6 0 pb-16k">
|
||||
<div className="flex flex-col space-y-6 lg:flex-row lg:space-x-12 lg:space-y-0">
|
||||
<aside className="-mx-4 lg:w-1/5">
|
||||
<SidebarNav items={sidebarNavItems} disabled={disabled} />
|
||||
</aside>
|
||||
<div className={`flex-1 ${limitWidth ? "lg:max-w-2xl" : ""}`}>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue