"use client"; import React from "react"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { Tabs, TabsContent } from "@/components/ui/tabs"; import { Account, Session, User } from "@/db/schema/02_user"; import { ProfileSidebar } from "./profile-sidebar"; import {ProfileProviders} from "@/components/wrappers/dashboard/profile/profile-providers"; import {ProfileAccount} from "@/components/wrappers/dashboard/profile/profile-account"; import {ProfileAppearance} from "@/components/wrappers/dashboard/profile/profile-apperance"; import {ProfileSecurity} from "@/components/wrappers/dashboard/profile/profile-security"; import {ProfileGeneral} from "@/components/wrappers/dashboard/profile/profile-general"; import {AuthProviderConfig} from "../../../../../../portabase.config"; type ProfileModalProps = { open: boolean; user: User; sessions: Session[]; currentSession: Session; accounts: Account[]; onOpenChange: (open: boolean) => void; providers: AuthProviderConfig[] }; export const ProfileModal = ({ user, sessions, currentSession, accounts, open, onOpenChange, providers }: ProfileModalProps) => { return ( Settings Manage your account settings
acc.providerId === "credential")!} />
); };