import { json, Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration, } from "remix"; import type { LinksFunction, MetaFunction, LoaderFunction } from "remix"; import tailwindStylesheetUrl from "./styles/tailwind.css"; import { getUser } from "./session.server"; export const links: LinksFunction = () => { return [{ rel: "stylesheet", href: tailwindStylesheetUrl }]; }; export const meta: MetaFunction = () => ({ charset: "utf-8", title: "Remix Notes", viewport: "width=device-width,initial-scale=1", }); type LoaderData = { user: Awaited>; }; export const loader: LoaderFunction = async ({ request }) => { return json({ user: await getUser(request), }); }; export default function App() { return ( ); }