29 lines
591 B
TypeScript
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>
|
|
)
|
|
}
|