You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
492 B
TypeScript
24 lines
492 B
TypeScript
7 years ago
|
import * as React from 'react';
|
||
|
|
||
|
import { getPalette } from './App';
|
||
|
|
||
|
export default (props: {text: string}) => {
|
||
|
const style = {
|
||
|
header: {
|
||
|
backgroundColor: getPalette('primary1Color'),
|
||
|
color: getPalette('alternateTextColor'),
|
||
|
padding: 15,
|
||
|
textAlign: 'center',
|
||
|
},
|
||
|
headerText: {
|
||
|
margin: 0,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
return (
|
||
|
<div style={style.header}>
|
||
|
<h2 style={style.headerText}>{props.text}</h2>
|
||
|
</div>
|
||
|
);
|
||
|
};
|