2022-07-15 17:45:21 +03:00
|
|
|
import * as React from 'react';
|
|
|
|
|
import { FunctionComponent } from 'react';
|
|
|
|
|
import { Context } from '../../context/context';
|
|
|
|
|
|
|
|
|
|
const HeaderbarTitle: FunctionComponent<{ title: string, color: string }> = ({ title, color }) => {
|
|
|
|
|
return (
|
2022-09-03 22:19:28 +03:00
|
|
|
<h1 style={{ color: color, transition: 'color 0.5s' }} className="header-bar-title">
|
2022-07-15 17:45:21 +03:00
|
|
|
{title}
|
|
|
|
|
<style jsx>{`
|
|
|
|
|
.header-bar-title {
|
|
|
|
|
margin: 10px 0px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
</h1>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default HeaderbarTitle;
|