2023-12-31 05:41:55 -05:00
|
|
|
import Link from "next/link";
|
2024-01-04 17:01:50 -05:00
|
|
|
import { Button } from "@/components/ui/button";
|
2023-12-31 05:41:55 -05:00
|
|
|
import UserProfile from "./userprofile";
|
2024-01-04 03:56:24 -05:00
|
|
|
import AdminProfile from "./adminprofile";
|
2024-01-04 17:01:50 -05:00
|
|
|
import RoleGate from "@/components/auth/role-gate";
|
2023-12-31 05:41:55 -05:00
|
|
|
|
|
|
|
const SettingsNavigation = async () => {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div className="text-4xl flex pl-[15px] pb-[33px]">Hermes</div>
|
|
|
|
|
|
|
|
<div className="w-full pl-[30px] pr-[30px] pb-[50px]">
|
2024-01-04 16:57:32 -05:00
|
|
|
<UserProfile />
|
|
|
|
<RoleGate roles={["ADMIN"]}>
|
|
|
|
<AdminProfile />
|
|
|
|
</RoleGate>
|
2023-12-31 05:41:55 -05:00
|
|
|
</div>
|
|
|
|
|
2024-01-04 16:57:32 -05:00
|
|
|
<div className="flex flex-grow h-full w-full">
|
|
|
|
<ul className="rounded-lg shadow-md flex flex-col w-full justify-between text-center align-center">
|
|
|
|
<li className="text-xs text-gray-200">
|
2023-12-31 05:41:55 -05:00
|
|
|
Settings
|
|
|
|
</li>
|
2024-01-04 16:57:32 -05:00
|
|
|
<li>
|
|
|
|
<Link href={"/settings/connections"} className="m-0 p-0 gap-0">
|
2023-12-31 05:41:55 -05:00
|
|
|
<Button variant="ghost" className="w-full text-lg">
|
|
|
|
Connections
|
|
|
|
</Button>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
|
2024-01-04 16:57:32 -05:00
|
|
|
<li className="text-xs text-gray-200">
|
2023-12-31 05:41:55 -05:00
|
|
|
Text to Speech
|
|
|
|
</li>
|
|
|
|
<li className="">
|
|
|
|
<Link href={"/settings/tts/voices"}>
|
|
|
|
<Button variant="ghost" className="w-full text-lg">
|
|
|
|
Voices
|
|
|
|
</Button>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
<li className="">
|
|
|
|
<Link href={"/settings/tts/filters"}>
|
|
|
|
<Button variant="ghost" className="w-full text-lg">
|
|
|
|
Filters
|
|
|
|
</Button>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
|
2024-01-04 16:57:32 -05:00
|
|
|
<li className="text-xs text-gray-200">
|
2023-12-31 05:41:55 -05:00
|
|
|
API
|
|
|
|
</li>
|
|
|
|
<li className="">
|
|
|
|
<Link href={"/settings/api/keys"}>
|
|
|
|
<Button variant="ghost" className="w-full text-lg">
|
|
|
|
Keys
|
|
|
|
</Button>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SettingsNavigation;
|