21 lines
483 B
TypeScript
21 lines
483 B
TypeScript
import { type FC } from 'hono/jsx'
|
|
|
|
const Layout: FC = ({ children, title }) =>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{title ?? 'hype'}</title>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<link href="/css/main.css" rel="stylesheet" />
|
|
<script src="/js/main.ts" type="module"></script>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
{children}
|
|
</main>
|
|
</body>
|
|
</html>
|
|
|
|
export default Layout
|