Template for starting apps, powered by Next.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
399 B

  1. import * as React from 'react'
  2. import styled from 'styled-components';
  3. import TopBar from '../../widgets/TopBar';
  4. const Main = styled('main')({
  5. boxSizing: 'border-box',
  6. })
  7. type Props = {
  8. query?: string,
  9. }
  10. const BasicLayout: React.FC<Props> = ({ query, children }) => {
  11. return (
  12. <>
  13. <TopBar
  14. query={query}
  15. />
  16. <Main>
  17. {children}
  18. </Main>
  19. </>
  20. )
  21. }
  22. export default BasicLayout