mancala/apps/frontend/src/components/headerbar/HeaderBar.tsx

22 lines
671 B
TypeScript
Raw Normal View History

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-09-03 22:19:28 +03:00
transition: background-color 0.5s;
2022-07-14 22:59:48 +03:00
}
2022-07-15 17:45:48 +03:00
`}</style>
2022-07-13 22:39:01 +03:00
</div>)
}
export default HeaderBar;