colouring-montreal/app/src/frontend/theme-switcher.js
2018-09-13 21:12:01 +01:00

15 lines
420 B
JavaScript

import React from 'react';
import './theme-switcher.css';
const ThemeSwitcher = (props) => (
<form className={`theme-switcher ${props.currentTheme}`} onSubmit={props.onSubmit}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
Switch theme ({(props.currentTheme === 'light')? 'Light' : 'Night'})
</button>
</form>
);
export default ThemeSwitcher;