import { MantineProvider } from "@mantine/core"; import { Notifications } from "@mantine/notifications"; import type { ModuleConfigs } from "modules"; import React from "react"; import { BkndProvider, useBknd } from "ui/client/bknd"; import { useTheme } from "ui/client/use-theme"; import { Logo } from "ui/components/display/Logo"; import * as AppShell from "ui/layouts/AppShell/AppShell"; import { FlashMessage } from "ui/modules/server/FlashMessage"; import { ClientProvider, type ClientProviderProps } from "./client"; import { createMantineTheme } from "./lib/mantine/theme"; import { BkndModalsProvider } from "./modals"; import { Routes } from "./routes"; export type BkndAdminProps = { baseUrl?: string; withProvider?: boolean | ClientProviderProps; config?: ModuleConfigs["server"]["admin"]; }; export default function Admin({ baseUrl: baseUrlOverride, withProvider = false, config }: BkndAdminProps) { const Component = ( }> ); return withProvider ? ( {Component} ) : ( Component ); } function AdminInternal() { const { theme } = useTheme(); return ( ); } const Skeleton = ({ theme }: { theme?: string }) => { const actualTheme = (theme ?? document.querySelector("html")?.classList.contains("light")) ? "light" : "dark"; return (
{/*Loading*/}
); };