mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-20 01:34:47 +00:00
26 lines
542 B
JavaScript
26 lines
542 B
JavaScript
import React, { useEffect } from 'react'
|
|
|
|
import TopNav from '../Components/TopNav';
|
|
import FrameHeading from '../Components/FrameHeading'
|
|
|
|
export default function Layout({ title, gametype, children }) {
|
|
useEffect(() => {
|
|
document.title = title + ' - Tribes 2 Stats';
|
|
}, [title])
|
|
|
|
return (
|
|
<>
|
|
<TopNav />
|
|
<FrameHeading heading={title} gametype={gametype} />
|
|
<main className="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
|
|
<div className="px-4 py-4 sm:px-0">
|
|
{ children }
|
|
</div>
|
|
</main>
|
|
</>
|
|
)
|
|
}
|
|
|
|
|
|
|