2024-11-09 00:08:17 -05:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
import { SidebarNav } from "@app/components/sidebar-nav";
|
2024-11-16 12:18:22 -05:00
|
|
|
import React from "react";
|
2024-11-09 00:08:17 -05:00
|
|
|
|
|
|
|
interface SideBarSettingsProps {
|
|
|
|
children: React.ReactNode;
|
2024-11-16 12:18:22 -05:00
|
|
|
sidebarNavItems: Array<{
|
|
|
|
title: string;
|
|
|
|
href: string;
|
|
|
|
icon?: React.ReactNode;
|
|
|
|
}>;
|
2024-11-09 00:08:17 -05:00
|
|
|
disabled?: boolean;
|
|
|
|
limitWidth?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function SidebarSettings({
|
|
|
|
children,
|
|
|
|
sidebarNavItems,
|
|
|
|
disabled,
|
|
|
|
limitWidth,
|
|
|
|
}: SideBarSettingsProps) {
|
|
|
|
return (
|
2024-12-29 22:07:12 -05:00
|
|
|
<div className="space-y-8 pb-16k">
|
2024-11-22 23:06:12 -05:00
|
|
|
<div className="flex flex-col space-y-8 lg:flex-row lg:space-x-32 lg:space-y-0">
|
2024-12-29 22:07:12 -05:00
|
|
|
<aside className="lg:w-1/5">
|
2024-11-09 00:08:17 -05:00
|
|
|
<SidebarNav items={sidebarNavItems} disabled={disabled} />
|
|
|
|
</aside>
|
|
|
|
<div className={`flex-1 ${limitWidth ? "lg:max-w-2xl" : ""}`}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|