mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-28 10:35:21 +02:00
26 lines
665 B
TypeScript
26 lines
665 B
TypeScript
import { api } from "@/utils/api";
|
|
import { ImpersonationBar } from "../dashboard/impersonation/impersonation-bar";
|
|
import { ChatwootWidget } from "../shared/ChatwootWidget";
|
|
import Page from "./side";
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
metaName?: string;
|
|
}
|
|
|
|
export const DashboardLayout = ({ children }: Props) => {
|
|
const { data: haveRootAccess } = api.user.haveRootAccess.useQuery();
|
|
const { data: isCloud } = api.settings.isCloud.useQuery();
|
|
|
|
return (
|
|
<>
|
|
<Page>{children}</Page>
|
|
{isCloud === true && (
|
|
<ChatwootWidget websiteToken="USCpQRKzHvFMssf3p6Eacae5" />
|
|
)}
|
|
|
|
{haveRootAccess === true && <ImpersonationBar />}
|
|
</>
|
|
);
|
|
};
|