Last active
November 6, 2020 15:22
-
-
Save Marwil96/1e94dbf84619f43d9a25a5e229af7a09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import "./layout.css" | |
import styled from "styled-components" | |
const Layout = ({ children }) => { | |
const LayoutWrapper = styled.section` | |
main { | |
padding: 32px; | |
} | |
` | |
return ( | |
<LayoutWrapper> | |
<main>{children}</main> | |
</LayoutWrapper> | |
) | |
} | |
export default Layout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment