mirror of
https://github.com/documenso/documenso.git
synced 2026-07-10 21:15:15 +10:00
31 lines
719 B
TypeScript
31 lines
719 B
TypeScript
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from 'react-router';
|
|
|
|
import type { Route } from './+types/root';
|
|
import stylesheet from './app.css?url';
|
|
|
|
export const links: Route.LinksFunction = () => [{ rel: 'stylesheet', href: stylesheet }];
|
|
|
|
export const 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 />
|
|
<Links />
|
|
</head>
|
|
<body>
|
|
{children}
|
|
<ScrollRestoration />
|
|
<Scripts />
|
|
</body>
|
|
</html>
|
|
);
|
|
};
|
|
|
|
const App = () => {
|
|
return <Outlet />;
|
|
};
|
|
|
|
export default App;
|