2024-11-09 00:08:17 -05:00
|
|
|
"use client";
|
|
|
|
|
2025-01-01 21:41:31 -05:00
|
|
|
import { SidebarNav } from "@app/components/SidebarNav";
|
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,
|
2025-01-01 21:41:31 -05:00
|
|
|
limitWidth
|
2024-11-09 00:08:17 -05:00
|
|
|
}: SideBarSettingsProps) {
|
|
|
|
return (
|
2025-01-04 20:22:01 -05:00
|
|
|
<div className="space-y-4">
|
|
|
|
<div className="flex flex-col space-y-4 lg:flex-row lg:space-x-6 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>
|
2025-03-02 15:23:11 -05:00
|
|
|
<div className={`flex-1 ${limitWidth ? "lg:max-w-2xl" : ""} space-y-6`}>
|
2024-11-09 00:08:17 -05:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|