mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-03-31 14:22:27 -04:00
36 lines
807 B
TypeScript
36 lines
807 B
TypeScript
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
import { Slot } from "expo-router";
|
|
import { Platform } from "react-native";
|
|
import { Providers } from "~/providers";
|
|
import "../global.css";
|
|
import { Tooltip } from "~/primitives";
|
|
|
|
const GlobalCssTheme = () => {
|
|
// body {font-family: ${font.style.fontFamily};}
|
|
// background-color: ${theme.background};
|
|
return (
|
|
<>
|
|
{/* <SkeletonCss /> */}
|
|
{/* <TouchOnlyCss /> */}
|
|
{/* <HiddenIfNoJs /> */}
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default function Layout() {
|
|
// const registry = createStyleRegistry();
|
|
// useServerHeadInsertion(() => registry.flushToComponent());
|
|
|
|
return (
|
|
<Providers>
|
|
<Slot />
|
|
{Platform.OS === "web" && (
|
|
<>
|
|
<ReactQueryDevtools initialIsOpen={false} />
|
|
<Tooltip />
|
|
</>
|
|
)}
|
|
</Providers>
|
|
);
|
|
}
|