import { MantineProvider } from "@mantine/core"; import { Notifications } from "@mantine/notifications"; import React from "react"; import { BkndProvider, type BkndAdminOptions } 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 { 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?: BkndAdminOptions; }; 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?: any }) => { const t = useTheme(); const actualTheme = theme ?? t.theme; return (
{/*Loading*/}
); };