add HeaderbarTitle
This commit is contained in:
parent
c38d8c60d5
commit
32419a6ad4
18
src/components/headerbar/HeaderbarTitle.tsx
Normal file
18
src/components/headerbar/HeaderbarTitle.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
import { FunctionComponent } from 'react';
|
||||||
|
import { Context } from '../../context/context';
|
||||||
|
|
||||||
|
const HeaderbarTitle: FunctionComponent<{ title: string, color: string }> = ({ title, color }) => {
|
||||||
|
return (
|
||||||
|
<h1 style={{ color: color }} className="header-bar-title">
|
||||||
|
{title}
|
||||||
|
<style jsx>{`
|
||||||
|
.header-bar-title {
|
||||||
|
margin: 10px 0px;
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
|
</h1>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default HeaderbarTitle;
|
||||||
Loading…
Reference in New Issue
Block a user