Chat hub page

This commit is contained in:
2025-10-17 22:45:01 +02:00
parent b21e1aa690
commit 614f8577b2
5 changed files with 156 additions and 22 deletions
+15 -9
View File
@@ -10,28 +10,34 @@ import {
import { cn } from "@/lib/utils";
import Settings from "./Settings";
import { ProfileSettings } from "@/types/settings";
import { useState } from "react";
import { ReactNode, useState } from "react";
export default function SettingsDialog({
className,
tab,
profile,
children,
}: {
className?: string;
tab?: string;
profile: ProfileSettings;
children?: ReactNode;
}) {
return (
<Dialog>
<DialogTrigger asChild>
<Button
className={cn(
"bg-transparent text-accent-foreground hover:text-accent",
className
)}
>
<SettingsIcon />
</Button>
{children ? (
children
) : (
<Button
className={cn(
"bg-transparent text-accent-foreground hover:text-accent",
className
)}
>
<SettingsIcon />
</Button>
)}
</DialogTrigger>
<DialogContent>
<DialogHeader>