From 464e470441287572cfda8d95484f781236b9db35 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Mon, 9 Aug 2021 21:36:03 +0200 Subject: init commit --- components/Layout.js | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 components/Layout.js (limited to 'components/Layout.js') diff --git a/components/Layout.js b/components/Layout.js new file mode 100644 index 0000000..f77ea0c --- /dev/null +++ b/components/Layout.js @@ -0,0 +1,67 @@ +import React, {useState} from 'react' +import Head from 'next/head' +import Context from '../context'; +import Header from './Header' +import Popup from './Popup' +import PropTypes from 'prop-types' + +const Layout = ({ children, apps, setApps}) => { + const [popup, setPopup] = useState({}) + + return ( + + + Notes App + +
+
{children}
+
+
+ + + + ) +} + +export default Layout + +Layout.propTypes = { + children: PropTypes.node, +} -- cgit v1.2.3