import { withEmotionCache } from "@emotion/react" import { Links, Meta, Outlet, Scripts, ScrollRestoration, } from "@remix-run/react" import { ThemeProvider } from "next-themes" import { ChakraProvider } from "./components/chakra-provider" import { useInjectStyles } from "./emotion/emotion-client" interface LayoutProps extends React.PropsWithChildren {} export const Layout = withEmotionCache((props: LayoutProps, cache) => { const { children } = props useInjectStyles(cache) return (