oxen-website/components/layout/index.tsx

21 lines
427 B
TypeScript
Raw Normal View History

2021-01-22 03:43:42 +01:00
import React, { ReactNode } from 'react';
2021-02-01 07:02:12 +01:00
import { Header } from '../navigation/Header';
2021-01-22 03:43:42 +01:00
interface Props {
children: ReactNode;
}
export default function Layout({ children }: Props) {
return (
2021-01-28 07:07:25 +01:00
<div
style={{ height: '100vh', width: '100%' }}
className="flex flex-col justify-between"
>
2021-02-01 07:02:12 +01:00
<div className="relative flex flex-col">
2021-01-28 02:54:06 +01:00
<Header />
2021-02-02 06:28:00 +01:00
{children}
2021-01-22 03:43:42 +01:00
</div>
</div>
);
}