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 (