tome-web/client/components/Page.tsx
2021-11-08 03:29:26 -05:00

29 lines
591 B
TypeScript

import React from 'react'
import GithubIcon from './GithubIcon.tsx'
interface PageProps {
children: React.ReactNode
}
export default function Page({children}: PageProps): JSX.Element {
return (
<div className="page">
<header className="header">
<h2 className="header-text">
Tomecraft
</h2>
<a
href="https://github.com/snendev/deno-react-web-starter"
target="_blank"
>
<GithubIcon size={60} />
</a>
</header>
<main className="main">
{children}
</main>
</div>
)
}