Files
sweet/www/routes/recipes/_layout.tsx
T
Marvin Hagemeister 88c3671a09 fix: error handling in fs routes (#2474)
Ran into an issue where we weren't responding with the correct status
code and passed response headers. This was a bit of a rabbit hole and it
was caused by us wrapping to more error handling middlewares than
necessary.
2024-05-31 14:27:36 +02:00

19 lines
469 B
TypeScript

import type { PageProps } from "@fresh/core";
import Header from "../../components/Header.tsx";
export default function Layout({ Component }: PageProps) {
return (
<>
<Header active="" title="" />
<div class="w-full max-w-screen-xl px-4">
<Component />
<p class="mt-16">
This route is used only for demo purposes;{" "}
<a href="/" class="underline">see the home page</a>.
</p>
</div>
</>
);
}