feat: working login and logged out

This commit is contained in:
2026-09-10 23:40:08 +02:00
parent 300b1ce774
commit ac56bf4894
7 changed files with 97 additions and 24 deletions
+6 -3
View File
@@ -1,7 +1,10 @@
import Header from "../components/Header.tsx";
import { define } from "../utils.ts";
import { define, isLoggedIn } from "../utils.ts";
export default define.page(function App(ctx) {
const Component = ctx.Component;
const loggedIn = isLoggedIn(ctx.req);
export default define.page(function App({ Component }) {
return (
<html data-theme="light">
<head>
@@ -10,7 +13,7 @@ export default define.page(function App({ Component }) {
<title>Deno Fresh Dummy</title>
</head>
<body>
<Header />
<Header loggedIn={loggedIn} />
<Component />
</body>
</html>