From 9f74c550927671f4ded301d0cf3e9d592716375c Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sun, 22 Aug 2021 14:33:54 +0200 Subject: settings --- components/Layout.js | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) (limited to 'components/Layout.js') diff --git a/components/Layout.js b/components/Layout.js index 0b8348c..e915285 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -1,30 +1,26 @@ import styles from 'styles/Main.module.scss' -import React, {useState} from 'react' +import React from 'react' import Head from 'next/head' -import Context from '../context'; -import Header from './Header' -import Popup from './Popup' +import {Header, Popup} from 'components' import PropTypes from 'prop-types' -const Layout = ({ children, apps, setApps}) => { - const [options, setOptions] = useState({theme: 'dark'}) - const [popup, setPopup] = useState({}) - - return ( - -
- - My Apps - -
-
{children}
-
-
- -
-
- ) -} +const Layout = ({ + children, + apps, + setApps, + settings, +}) => ( +
+ + My Apps + +
+
{children}
+
+
+ +
+) export default Layout -- cgit v1.2.3