echoes/frontend/app/root.tsx

36 lines
878 B
TypeScript
Raw Normal View History

import { Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react";
import type { LoaderFunction } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { createContext, useContext, ReactNode } from 'react';
import { ServiceProvider } from "hooks/servicesProvider";
import "./tailwind.css";
export function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1"
/>
<Meta />
</head>
<body>
<ServiceProvider>
{children}
</ServiceProvider>
<ScrollRestoration />
<Scripts />
</body>
</html>
);
}
export default function App() {
return (
<Layout>
<Outlet />
</Layout>
);
}