mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
18 lines
306 B
JavaScript
18 lines
306 B
JavaScript
|
// @flow
|
||
|
import React, { type Node } from 'react'
|
||
|
import Head from 'next/head'
|
||
|
|
||
|
type Props = {
|
||
|
children: Node,
|
||
|
title?: string
|
||
|
}
|
||
|
|
||
|
export default ({ children, title = 'This is the default title' }: Props) => (
|
||
|
<section>
|
||
|
<Head>
|
||
|
<title>{title}</title>
|
||
|
</Head>
|
||
|
{children}
|
||
|
</section>
|
||
|
)
|