import React from 'react';
import { createComponent } from 'olymp-fela';
import { ThemeProvider } from 'react-fela';
import useTheme from './theme';

const Header = createComponent(
  ({ theme, color }) => ({
    height: 80,
    display: 'flex',
    flexShrink: 0,
    alignItems: 'center',
    fontSize: '120%',
    marginX: -9,
    paddingX: 9,
    marginTop: `-${theme.space2}`,
    paddingTop: theme.space2,
    // marginBottom: theme.space2,
    paddingBottom: theme.space2,
    backgroundColor: (color === true && theme.color) || theme[color] || color,
    color: theme.inverted ? theme.light : theme.dark,
    '> svg': {
      size: 40,
    },
    '> img': {
      size: 50,
      borderRadius: theme.borderRadius,
    },
  }),
  'div',
);

export default useTheme(({ inverted, color, theme, ...props }) => (
  <ThemeProvider theme={theme}>
    <Header color={color} {...props} />
  </ThemeProvider>
));

@@ -412,11 +412,8 @@
 %0A   
- //
  mar

fix header in menu