37 lines
810 B
TypeScript
37 lines
810 B
TypeScript
import {
|
|
Links,
|
|
Meta,
|
|
Outlet,
|
|
Scripts,
|
|
ScrollRestoration,
|
|
} from "@remix-run/react"
|
|
import React from "react"
|
|
import { ManifestLink } from "@remix-pwa/sw"
|
|
import { LinksFunction } from "@remix-run/node"
|
|
import styles from "./styles/styles.css?url"
|
|
|
|
export const links: LinksFunction = () => [{ rel: "stylesheet", href: styles }]
|
|
|
|
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 />
|
|
<ManifestLink />
|
|
<Links />
|
|
</head>
|
|
<body>
|
|
{children}
|
|
<ScrollRestoration />
|
|
<Scripts />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|
|
|
|
export default function App() {
|
|
return <Outlet />
|
|
}
|