2018-09-13 11:03:49 -04:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import './theme-switcher.css';
|
|
|
|
|
|
|
|
const ThemeSwitcher = (props) => (
|
|
|
|
<form class={`theme-switcher ${props.currentTheme}`} onSubmit={props.onSubmit}>
|
2018-09-13 15:35:27 -04:00
|
|
|
<button class="btn btn-outline btn-outline-dark"
|
|
|
|
type="submit">
|
2018-09-13 11:03:49 -04:00
|
|
|
Switch theme ({(props.currentTheme === 'light')? 'Light' : 'Night'})
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default ThemeSwitcher;
|