2022-07-13 22:39:01 +03:00
|
|
|
import * as React from "react";
|
2022-07-15 18:11:09 +03:00
|
|
|
import { FunctionComponent } from "react";;
|
2022-07-13 22:39:01 +03:00
|
|
|
|
2022-07-15 18:11:09 +03:00
|
|
|
const HeaderBar: FunctionComponent<{ color?: string }> = ({children, color }) => {
|
2022-07-13 22:39:01 +03:00
|
|
|
return (
|
2022-07-15 18:11:09 +03:00
|
|
|
<div style={{ background: color }} className="header-bar">
|
|
|
|
|
{children}
|
2022-07-14 22:59:48 +03:00
|
|
|
<style jsx>{`
|
|
|
|
|
.header-bar {
|
|
|
|
|
padding: 0px 4vw;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-self: stretch;
|
|
|
|
|
}
|
2022-07-15 17:45:48 +03:00
|
|
|
`}</style>
|
2022-07-13 22:39:01 +03:00
|
|
|
</div>)
|
|
|
|
|
}
|
|
|
|
|
export default HeaderBar;
|